int setmode( int nMode = filebuf::text );
Parameter
nMode
An integer that must be one of the static filebuf constants. The nMode parameter must have one of the following values:
Return Value
The previous mode if there is no error; otherwise 0.
Remarks
Sets the binary/text mode of the stream’s filebuf object.
filebuf Overview | Stream Buffer Classes
See Also ios binary manipulator, ios text manipulator