User forums > Using Code::Blocks
Feeding in a new file via the stdin
(1/1)
Blanchy:
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
Navigation
[0] Message Index
Go to full version