Sign in to follow this  
anda

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

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this