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

Offline Blanchy

  • Single posting newcomer
  • *
  • Posts: 7
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