Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
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?
Posted

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!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...