stdin redirection possible?
Posted: Mon Dec 12, 2011 10:04 pm
Say i want to read standard input from a file rather than the keyboard. For example:
./myprog < in.txt
I've tried putting '< in.txt' in the program arguments and other places but it doesn't work. Putting '> out.txt" works fine though.
Are there any tricks i can use to do this?
./myprog < in.txt
I've tried putting '< in.txt' in the program arguments and other places but it doesn't work. Putting '> out.txt" works fine though.
Are there any tricks i can use to do this?