User forums > Using Code::Blocks
Set programs' arguments
(1/1)
euphrates:
Hi,
I have Code::Blocks 8.02 installed on a Windows Vista machine. I use MinGW gcc compiler. I want to use a text file as input to my program, so I enter '< test.in' in "Set programs' arguments" but unfortunately this doesn't work. Currently I am passing the input file as an argument using the MSYS shell.
xen:
I have the same problem. I would like to run debugger with input file (like program.exe < test.in).
When I put "< test.in" into programs' arguments and run the program (in c::b), then
--- Code: ---"c:\...\program.exe" < test.in
--- End code ---
is executed but with no effect (like there is no input). Maybe the problem is with that quota " after program.exe.
Maybe someone knows if it is possible in c::b to run program with input file?
Navigation
[0] Message Index
Go to full version