Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
Help
»
file input to C programs
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: file input to C programs (Read 5210 times)
moey
Guest
file input to C programs
«
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
Logged
oBFusCATed
Developer
Lives here!
Posts: 13413
Re: file input to C programs
«
Reply #1 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
Logged
(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!]
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
Help
»
file input to C programs