input/output redirection in debug

  • Thread starter Thread starter ES Kim
  • Start date Start date
E

ES Kim

Hi,
I am using VC++ .NET 7.0.
I'd like to debug my console program,
using redirection of input/output for convenience.
Help menu tells me it's possible to specify a file
name as a command-line argument like '< file',
but I couldn't make it.
What have I done wrong?
 
Mihajlo Cvetanovic said:
'>' is used for output and '<' is used for input.

Yes, I know that. The problem is, it doesn't work for any of them
even if I specify them.
 
ES said:
Yes, I know that. The problem is, it doesn't work for any of them
even if I specify them.

If I put "> output.txt" in Configuration Properties > Debugging >
Command Arguments then my output will get redirected (output.txt will
be created in main project folder, not in Debug folder). If I execute
"test > output.txt" from command prompt the result is the same.

What do you do?
 
Back
Top