Sign in to follow this  
ajm113

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this