Posted by Sleepless Snowman on July 15, 1999 at 13:42:17:
In Reply to: Screen Dumps posted by LittleMe on July 14, 1999 at 20:12:21:
To do a screen dump, (this applies to console users which works for either x86 or unix flavored development) to capture the output of your program, you can use the ">" or ">>" operator following your program execution.
The ">" will redirect all of your stdout to a file of your choice. The ">>" will redirect all of your stdout to a file of your choice, though rather than overwriting the filename and instantiating a new one should the file exist, it automatically appends it to the end of the file.
Example 1: This will send all the output of the program projx to the file output.txt. If there is no file there, it will create a new one. If the file already exist, it will overwrite it.
projx > output.txt
Exampe 2: This will send all the output of the program projx to the file output.txt. However, if there is already a file, it will append the new output to the existing output.txt
projx >> output.txt
These redirection operators works great for either DOS based applications such as dir/s or unix based system of ls -alR.
sleepless