C#–Read STDOUT from a console application
Recently I needed to start a console application from C#, wait until the execution has finished and read the output back. Here is a simple way this can be done. The first thing is to run the process and attach an EventHandler for the finish of the process: Process process = new Process(); process.StartInfo.FileName = …