int setmode( int nMode = filebuf::text );
nMode
An integer that must be one of the static filebuf constants, as follows:
Value | Meaning |
filebuf::text | Text mode (newline characters translated to and from carriage return–linefeed pairs). |
filebuf::binary | Binary mode (no translation). |
This function sets the binary/text mode of the stream's filebuf object.
The previous mode if there is no error; otherwise 0.
ios binary manipulator, ios text manipulator