| 771 |  | ifstrstream* ffStream = new ifstrstream(); | 
| 772 |  |  | 
| 773 |  | //try to open the force filed file in current directory first | 
| 774 | < | ffStream->open(forceFieldFilename.c_str()); | 
| 774 | > | ffStream->open(forceFieldFilename.c_str(), ifstream::in | ifstream::binary); | 
| 775 | > |  | 
| 776 |  | if(!ffStream->is_open()){ | 
| 777 |  |  | 
| 778 |  | forceFieldFilename = ffPath_ + "/" + forceFieldFilename; | 
| 779 | < | ffStream->open( forceFieldFilename.c_str() ); | 
| 779 | > | ffStream->open( forceFieldFilename.c_str(), | 
| 780 | > | ifstream::in | ifstream::binary ); | 
| 781 |  |  | 
| 782 |  | //if current directory does not contain the force field file, | 
| 783 |  | //try to open it in the path |