mongoimport and mongoexport should open files in text mode

This commit is contained in:
Mathias Stearn
2010-02-03 21:07:44 -05:00
parent 6b46b83868
commit cb550b0774
2 changed files with 2 additions and 2 deletions

View File

@@ -135,7 +135,7 @@ public:
istream * in = &cin;
ifstream file( filename.c_str() , ios_base::in | ios_base::binary);
ifstream file( filename.c_str() , ios_base::in);
if ( filename.size() > 0 && filename != "-" ){
if ( ! exists( filename ) ){