JavaScript is required to use Bungie.net

Forums

originally posted in: C++ seekg()
4/20/2013 5:44:57 AM
2
Here's an example using istream which defines seekg.
English

Posting in language:

 

Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

  • Thanks dazarobbo! Do you know how I could use this with a txt file?

    Posting in language:

     

    Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

  • [url=http://www.cplusplus.com/reference/fstream/fstream/]fstream[/url] inherits from istream, so you can call .seekg on an fstream object. There's an example [url=http://www.cplusplus.com/reference/fstream/fstream/fstream/]here[/url] for creating an input stream for a file.

    Posting in language:

     

    Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

You are not allowed to view this content.
;
preload icon
preload icon
preload icon