c# redirected stderr asking me to type answer. I am not getting question

Piotr Rybak 21 Reputation points
2021-04-07T14:06:36.983+00:00

I do

    var psi = new ProcessStartInfo
    {
        FileName = "ffmpeg.exe",
        RedirectStandardError = true,
        RedirectStandardOutput = true,
        RedirectStandardInput = true,
        UseShellExecute = false
    };
    var p = Process.Start(psi);
    var reader = p.StandardError;

    while (!reader.EndOfStream) {
        string currentLine = reader.ReadLine();
        File.AppendAllText(fNamestdout, currentLine+"\r\n");
    }

It is getting all lines into file till the last line that awaits for typing into keyboard.
I am not getting the last line with question asking me to type something
so I do not know what answer I should type.

How to get the last line asking me to type something?

Program is blocking at reader.ReadLine(); while awaiting me type answer
but I do not know question.

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.