Visual Studios .net Programming environment

  • Thread starter Thread starter Addam Webber
  • Start date Start date
A

Addam Webber

Anyone,
I am creating a C++ program that will read in data from a command line.
However, during building I would like to test it from a file. Is there any
way to do output redirection in Visual Studios.net much like the "<" in
Linux?

~thanks
Addam
 
I am sry I just re-read my post. I did not mean to say output redirection I
meant to say input redirection. sry the user will be using a command line
to enter in data. so I am using cin. is there a way to simulate the
command prompt and in its place put a file??

~thanks
Addam
 
When calling your program, you can use myprog.exe < myfile.txt and that will
be sent into standard in.
-mike
MVP
 
Mike,
I appreciate the help. However, I want to debug the application.
Therefore I will not be running it from it's final exe form. Does .net
offer any kind of input redirection during debug time??

~thank you
Addam
 
Back
Top