News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Read Input from File using Code Blocks

Started by dedachi, April 13, 2010, 10:04:23 PM

Previous topic - Next topic

dedachi

Hello,

Consider I have a program which has to get input from a file containing some data.
In gcc, the indirection/redirection operators work.

So I would do:

./a.out < readfromFile.txt  and values from a txt file will be read into the program using command line. This file is present on my local hard drive.

I am confused how could I do this using codeblocks? (How could I use command line in code blocks to specify the file name)

Please could anyone help on this?

Thanks

oBFusCATed

Why have you posted this for the second time?

http://forums.next.codeblocks.org/index.php/topic,12119.0.html

Bumping your thread is the better solution...

Morten: there is no info for the tools menu in the manual :(
But there is a wiki page  :lol: (some clicks + a wiki search harder to find) : http://wiki.codeblocks.org/index.php?title=Configure_tools
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]