Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Blanchy on December 16, 2007, 12:58:05 pm

Title: Feeding in a new file via the stdin
Post by: Blanchy 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