I'm using NetBeans to develop some simple applications to solve puzzles. Upon launching one of these simple console applications, I'd like to get the input from a simple text file that I put together.
I recall mention of redirecting standard input and output. I looked up the syntax but I'm not sure on the proper way to tell NetBeans (or any IDE for that matter) to accept this file as input...
How might I do this from netbeans?
It works perfectly from my Cygwin window by executing:
./myProg.exe < input.txt
A couple of notes:
- I'm developing in C
- My compiler is GCC on Cygwin