Code::Blocks Forums

User forums => Help => Topic started by: moey on April 22, 2011, 08:42:38 am

Title: file input to C programs
Post by: moey on April 22, 2011, 08:42:38 am
Hey guys,
So, i was wondering if there was a way to make your program read a file as standard input.
In linux the command was ./run < input.txt, with ./run being the program and input.txt being the file which includes the data.
thanks
Title: Re: file input to C programs
Post by: oBFusCATed on April 22, 2011, 09:52:10 am
Search the forum, it is answered million times, when you found an answer, please enrich our FAQ in the wiki -> http://wiki.codeblocks.org/index.php?title=FAQ