mongoimport and mongoexport should open files in text mode
This commit is contained in:
@@ -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() ){
|
||||
|
||||
Reference in New Issue
Block a user