Hi i want to read a Process.StandardOutput.Readline() until the process asks for input
Pseudo code :
while(cmd doesn't asks for input)
{
Console.WriteLine(p.StandardOutput.ReadLine())
}
i've already tried
while(!p.StandardOutput.EndOfStream)
{
Console.WriteLine(p.StandardOutput.ReadLine())
}
but it makes an infinite loop because the process asks for input
thanks in advance :)