From b6b54d092130aa9d31e845c768faf8f08b7a30b1 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Thu, 12 Nov 2015 16:10:50 -1000 Subject: [PATCH] Minor file I/O tweaks --- src/Athena/FileReader.cpp | 4 ++-- src/Athena/FileWriter.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Athena/FileReader.cpp b/src/Athena/FileReader.cpp index 10a48bc..cb0c115 100644 --- a/src/Athena/FileReader.cpp +++ b/src/Athena/FileReader.cpp @@ -59,8 +59,8 @@ void FileReader::open() return; } - // ensure we're at the beginning of the file - rewind(m_fileHandle); + // reset error + m_hasError = false; } void FileReader::close() diff --git a/src/Athena/FileWriter.cpp b/src/Athena/FileWriter.cpp index 6a2eb1c..12cf013 100644 --- a/src/Athena/FileWriter.cpp +++ b/src/Athena/FileWriter.cpp @@ -70,8 +70,8 @@ void FileWriter::open(bool overwrite) return; } - // ensure we're at the beginning of the file - rewind(m_fileHandle); + // reset error + m_hasError = false; } void FileWriter::close()