rifter1818 Posted January 29, 2005 Posted January 29, 2005 this isnt so much syntax as it is the editor what i want is to set up the enviornment so i can add 2 text files to my project (in.txt, and out.txt) such that when i tell it run my program it will use in for input and out for output (command line arguments <in.txt >out.txt) where would i enter "<in.txt >out.txt", will there be a problem with the fact that the txt files are in the project directory while the exicutables are in 'debug' and what should be done to fix such a problem? Quote
rifter1818 Posted January 29, 2005 Author Posted January 29, 2005 ok i found what i should be doing, under project properties,debbuging, command arguments i put <in.txt >out.txt ive changed the build directory to the main directory however now it says that it cant run the application because the output file is invalid (cant redirect output...) however if i just put <in.txt as the arguments it runs but doesnt input(from the file)! any ideas? edit ive even changed it to <$(SolutionDir)in.txt >$(SolutionDir)out.txt which gets rid of the invalid file problem however it still inputs from keyboard and outputs to screen! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.