Is there anyway of changing the value of the EOF marker?
setting value of EOF
Collapse
X
-
Technically, yes. I presume you mean the .eof() function in ifstream. .eof() will only return true if the ifstream object is at the end of the file - so reading a file will eventually change .eof() from false to true. Once you reach the end of the file, you can reset the ifstream object by using .close() and then repeating the .open function call with the same target file.
Comment