input/output redirection in debug

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?
 
M

Mihajlo Cvetanovic

ES said:
I'd like to debug my console program,
using redirection of input/output for convenience.

'>' is used for output and '<' is used for input.
 
E

ES Kim

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.
 
M

Mihajlo Cvetanovic

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top