• Advertisement
Sign in to follow this  

file problem

This topic is 3623 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

How can I work with files outside the working directory because this seems to not work...
std::fstream File1("H:\test.txt");

Share this post


Link to post
Share on other sites
Advertisement
"H:\\test.txt"

What you had would use \t as an escape; i.e. puts a tab in the middle of the file name.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement