How to use the output stream of the process?

How to display the output stream of the process?
When you need to output the string there in a timely manner display a string in this application
June 14th 19 at 20:02
1 answer
June 14th 19 at 20:04
Example from MSDN

Process compiler = new Process();
compiler.StartInfo.FileName = "csc.exe";
compiler.StartInfo.Arguments = "/r:System.dll /out:sample.exe stdstr.cs";
compiler.StartInfo.UseShellExecute = false;
compiler.StartInfo.RedirectStandardOutput = true;



UseShellExecute must be set to False, otherwise it will not work.
Similarly, you can use a compiler.StandardIntput to give input as if from the console.

Find more questions by tags C#