User forums > Help

file input to C programs

(1/1)

moey:
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

oBFusCATed:
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

Navigation

[0] Message Index

Go to full version