Resetting a CStdioFile object

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ahammad
    New Member
    • May 2007
    • 79

    Resetting a CStdioFile object

    I have a CStdioFile object called finput, and it is used to read in data from a file and do stuff to that data.

    After this has been done, I want to use the same object to read the same data (which has been modified). But at that point, it would have already reached the end of file, so it won't read anything.

    How can you reset CStdioFile to start from the beginning again?
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    Use CStdioFile::See k to position 0 bytes from CFile::begin.

    Comment

    Working...