Author Topic: Feeding in a new file via the stdin  (Read 2484 times)

Blanchy

  • Guest
Feeding in a new file via the stdin
« on: December 16, 2007, 12:58:05 pm »
Hi I'm trying to feed in a file into the stdin but it's acting strangely.

In 'Project->program arguments' I'm doing entering "< file.txt"  (without the quotes)

If I run my program via the command line by doing

program < file.txt

then it works fine.

How can I get it working in Codeblocks?

Thanks