fstream::setmode

int setmode( int nMode = filebuf::text );

Sets the binary/text mode of the stream’s filebuf object. It can be called only after the file is opened.

Return Value

The previous mode;  –1 if the parameter is invalid, the file is not open, or the mode cannot be changed.

Parameter

nMode

An integer that must be one of the following static filebuf constants:

fstream OverviewInput Stream Classes

See Also   ios binary manipulator, ios text manipulator