end of file help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vsachar
    New Member
    • Mar 2009
    • 15

    end of file help

    I had a doubt about the end of file. I read the entire file and reached the end of file after which I'm not able to get the file pointer back to the start of file.

    I tried seekg() and it didn't help.
    I used the ios::eofbit flag to check if it was the end of file after seeking to the start of file and the eos bit still gave true.

    So, please help with this.
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    Could you post a code snippet, please.

    Also provide a sample of your input file.

    Comment

    Working...