Author Topic: Set programs' arguments  (Read 2470 times)

euphrates

  • Guest
Set programs' arguments
« on: March 23, 2008, 05:38:25 pm »
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

  • Guest
Re: Set programs' arguments
« Reply #1 on: May 13, 2008, 07:40:58 pm »
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: [Select]
"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?