• Advertisement
Sign in to follow this  

The use of fstream under Visual C++ .NET

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

Advertisement
The C++ headers no longer have the .h extension, it's now just fstream.

Share this post


Link to post
Share on other sites
Are you sure you are in the right scope? Try replacing ifstream with std::ifstream or make sure that you have "using namespace std" at the beginning of your code.

Share this post


Link to post
Share on other sites
No. They are now under the std namespace, which means that you can use std::ifstream, or you can put using namespace std; somewhere above your declaration of ifstream, or you can put using std::ifstream; to be more precise.


jfl.

Share this post


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

  • Advertisement