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