--- trunk/src/brains/ForceField.cpp 2013/06/16 15:15:42 1879 +++ trunk/src/brains/ForceField.cpp 2013/06/17 18:28:30 1880 @@ -761,13 +761,11 @@ namespace OpenMD { ifstrstream* ffStream = new ifstrstream(); //try to open the force filed file in current directory first - ffStream->open(forceFieldFilename.c_str(), ifstream::in | ifstream::binary); - + ffStream->open(forceFieldFilename.c_str()); if(!ffStream->is_open()){ forceFieldFilename = ffPath_ + "/" + forceFieldFilename; - ffStream->open( forceFieldFilename.c_str(), - ifstream::in | ifstream::binary ); + ffStream->open( forceFieldFilename.c_str() ); //if current directory does not contain the force field file, //try to open it in the path