Jump to content
  • Advertisement
Sign in to follow this  
anda

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

This topic is 3572 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!