ppraj 0 Newbie Poster

I use process class to execute a program. The redirect standard input,out and error are set to true. So once the standard output is complete , I write the stream using ReadToEnd method of the stream.
However I like to also populate a text file with data read from the standard output and error as and when it gets generated .

I have seen the event handler available for the standard output and have also registered the event .In that method ,I'm trying to write to a text file from the data received. But it does not get populated as and when the data comes, but only at the end of the process operation.

Can somebody help ?