Page 1 of 1

stdin redirection possible?

Posted: Mon Dec 12, 2011 10:04 pm
by jazztickets
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?

Re: stdin redirection possible?

Posted: Fri Dec 16, 2011 4:34 pm
by eranif
jazztickets wrote:Are there any tricks i can use to do this?
I dont think so

Eran