Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Naaga

problem creating fstream object

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

Okay, I''ve been programming with c++ for over 2 years, and I haven''t seen anything like this before. I have an fstream object declared: fstream File; At first, this worked fine. Now, however, the program crashes at this point when I run it. Sometimes with an unhandled exception, and sometimes with the Windows popup that says "This program has performed an illegal operation...". I am utterly clueless as to what the problem could be. Anyone have an idea?

Share this post


Link to post
Share on other sites
Advertisement
Most likely, your problem is that you should create ofstream or ifstream, not fstream. Try it out

Share this post


Link to post
Share on other sites

  • 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!