Author Topic: Read Input from File using Code Blocks  (Read 5267 times)

Offline dedachi

  • Single posting newcomer
  • *
  • Posts: 4
Read Input from File using Code Blocks
« on: April 13, 2010, 10:04:23 pm »
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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Read Input from File using Code Blocks
« Reply #1 on: April 14, 2010, 12:27:49 am »
Why have you posted this for the second time?

http://forums.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!]