--- branches/development/src/brains/ForceField.cpp 2012/05/26 18:13:43 1725 +++ trunk/src/brains/ForceField.cpp 2012/08/30 17:18:22 1790 @@ -771,11 +771,13 @@ namespace OpenMD { ifstrstream* ffStream = new ifstrstream(); //try to open the force filed file in current directory first - ffStream->open(forceFieldFilename.c_str()); + ffStream->open(forceFieldFilename.c_str(), ifstream::in | ifstream::binary); + if(!ffStream->is_open()){ forceFieldFilename = ffPath_ + "/" + forceFieldFilename; - ffStream->open( forceFieldFilename.c_str() ); + ffStream->open( forceFieldFilename.c_str(), + ifstream::in | ifstream::binary ); //if current directory does not contain the force field file, //try to open it in the path