Posted by D. Barnette on November 19, 2001 at 16:46:03:
In Reply to: redirection of output posted by Andy on November 16, 2001 at 00:00:38:
You can do it a couple of ways. The simplest is to bring up a MSDOS command window. CD Change Dir to your project's debug directory. Copy your input files to the debug dir, then simply type in the name of your exe followed by the command line arguments and redirection symbol. E.g.,
C:\My Documents\CS2704\P3\Debug\P3 Init.txt Script.txt > output.txt
Alternatively, from within MSVC, select Projects/Settings and click on the Debug tab. In the Program Arguments field you can enter the command line input file names (in this case the inout files will need to be in the project dir not the debug dir).
Post a Followup