How to run a code with a text file in command line?

Whenever I try to run the .exe file from the bin>debug folder in command line, it fails to find the text file that it's supposed to open. How do I fix this issue?
How do you provide the file name?
most likely pathing problem. Either set up your files so that the file it needs is in the same folder as the executable, or provide the full path to the file.

there is nothing special about the commandline. You can redirect to gui programs (blah.exe < filename), you can call gui executables with commandline args, and both can redirect output to a file also if they have any (the gui may not). These tricks don't sound like your problem, but there is no difference in gui/commandline for support of these features.



Topic archived. No new replies allowed.