User forums > Using Code::Blocks
Redirecting standard input
(1/1)
candide:
Hi all
I try to redirect standard input from a text file to an executable program generated with codeblocks. With C::B running under Linux Ubuntu, from the menu Projet > set program's arguments, setting the program argument's box to
< foo.txt
does redirect the standard input to the foo.txt text file.
But this doesn't work under Windows. Another way to do this ?
ollydbg:
Under windows, You should use:
XXX.exe >> a.txt
Which redirect the standard output to a.txt
candide:
--- Quote from: ollydbg on February 05, 2009, 06:38:00 am ---Under windows, You should use:
XXX.exe >> a.txt
Which redirect the standard output to a.txt
--- End quote ---
The question was on redirecting
* standard INPUT (and not output)
* from inside codeblocks and not from the command line.
ollydbg:
Sorry for my mistake :D.
But I haven't heard direct INPUT in windows....
Jenna:
Not related to C::B and therefore violating our forum rules.
Topic locked.
Navigation
[0] Message Index
Go to full version