--- trunk/src/io/DumpReader.cpp 2012/08/22 02:28:28 1782 +++ trunk/src/io/DumpReader.cpp 2012/08/31 21:16:10 1793 @@ -75,7 +75,8 @@ namespace OpenMD { if (worldRank == 0) { #endif - inFile_ = new std::ifstream(filename_.c_str()); + inFile_ = new std::ifstream(filename_.c_str(), + ifstream::in | ifstream::binary); if (inFile_->fail()) { sprintf(painCave.errMsg, @@ -140,7 +141,7 @@ namespace OpenMD { prevPos = currPos; bool foundOpenSnapshotTag = false; bool foundClosedSnapshotTag = false; - bool foundOpenSiteDataTag = false; + while(inFile_->getline(buffer, bufferSize)) { ++lineNo;