Strangely enough I needed to do this today! I was running a DOS applicartion that was printing some error message in its console and then immediately aborting (taking the console down with it). Let's say your DOS app is called "app" and you want to see its output in a file called "file.txt". Just run the application from a command prompt by typing app > file.txt You'll then be able to open file.txt in any text editor and view the output. There's probably a way to do this programmatically too but I don't know what it is.
The '>' symbol BTW is called a pipe if I remember correctly.

