Possible Duplicate:
How do I save a stream to a file?
I want to write data from a readstream to a file in C#.
Something like the below:
StreamReader log = myexe.StandardOutput;
FileStream logfile = File.Create(LogFileName);
// write log to the logfile
Any suggestions please.