Jump to content
  • Advertisement
Sign in to follow this  
ajm113

ifstream::seekg converted too FILE * (C++/IO)

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

Quick Question: What is the function's name for FILE* from seekg in ifstream? I don't know what is 'FILE*' seekg is basically. I know this is a dumb question and I did google, but the functions I found right arn't clear if they are a cousin of seekg from ifstream.

Share this post


Link to post
Share on other sites
Advertisement
Are you asking what the ifstream equivalent of fseek is? If so, see seekg.

EDIT: Ah, you edited your post - Yes, seekg() is what you want. Considering it takes the same parameters as fseek() and does the same thing according to the documentation [smile]

Share this post


Link to post
Share on other sites
OH yeah I was thinking of fseek the same time while typing the post so I guest it was merging into my thoughts on witting this, ha. :D

OK, thanks it seems my compiler likes it, but still got some debugging to do still. I'll ask a question if I can't get over a road block, thanks again!

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!