News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Set programs' arguments

Started by euphrates, March 23, 2008, 05:38:25 PM

Previous topic - Next topic

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

"c:\...\program.exe" < test.in

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?