Minor file I/O tweaks

This commit is contained in:
Jack Andersen 2015-11-12 16:10:50 -10:00
parent bedcf128ac
commit b6b54d0921
2 changed files with 4 additions and 4 deletions

View File

@ -59,8 +59,8 @@ void FileReader::open()
return; return;
} }
// ensure we're at the beginning of the file // reset error
rewind(m_fileHandle); m_hasError = false;
} }
void FileReader::close() void FileReader::close()

View File

@ -70,8 +70,8 @@ void FileWriter::open(bool overwrite)
return; return;
} }
// ensure we're at the beginning of the file // reset error
rewind(m_fileHandle); m_hasError = false;
} }
void FileWriter::close() void FileWriter::close()