I know that the standard output is what is displayed to the command line. "2>error.txt" is a redirect to the file, instead. That causes errors. There is nothing to read in error.txt because it is not generated, even when it should be. What am I supposed to do when the application has a standard output?
Main Topics
Browse All Topics





by: tpwellsPosted on 2005-07-15 at 04:43:39ID: 14449701
the standard output would be what the program displays to the command line, not what is sent to a file (at least in this case).
Try reading in your error.txt file after the execution is finished.
also put a p.WaitForExit() after the p.Start() that way the program will wait for the process to finish before reading the error file in