Possible to load 'std::cin' input from a file when using visual c++ ide?

Started by
1 comment, last by mystb 15 years, 8 months ago
When I'm using linux to load inputs from a file for the std::cin to use, I call this.. a.out < inputdata.txt But I'm developing in visual c++, so is there a way to do it in that aswell? Thanks.
Advertisement
You can select which command line instruction is used to launch your program. I seem to remember it's in the project properties dialog.
on vs05:
- Project Properties:
- Configuration Properties
- Debugging
- Command Arguments
and also
- Working Directory



if you're asking how it's done in the "command prompt", its something like:

type file.txt | yourprog.exe

This topic is closed to new replies.

Advertisement