I'm having an odd issue with reading the output of a process in VS2010. I have redirected all the necessary streams as I should ( p.RedirectStandardOut = true
etc) and getting hold of the standard output and placing it in a another stream is no problem.
However, when I read from the stream with outStream.ReadLine()
, when there is nothing more to read the programme simply hangs. Is there any way to check that there is nothing in the stream?
Thanks in advance
M