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

@@ -54,7 +54,7 @@ public:
string dir = outfile.substr( 0 , idx + 1 );
create_directories( dir );
}
ofstream * s = new ofstream( outfile.c_str() , ios_base::out | ios_base::binary );
ofstream * s = new ofstream( outfile.c_str() , ios_base::out );
fileStream.reset( s );
outPtr = s;
if ( ! s->good() ){