The Microsoft Input/Output Stream Classes (iostream.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
filebuf::setmode
filebuf                                     Up Contents Index Back
──The Microsoft iostream Classes────────────────────────────────────────────
 
  int setmode( int nMode = filebuf::text );
 
  Parameter   Description
 
  <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).
 
  Remarks
 
  This function sets the binary/text mode of the stream's filebuf object.
 
  Return Value
 
  The previous mode if there is no error; otherwise 0.
 
  See Also
 
  ios binary manipulator, ios text manipulator
 
 
                                     -♦-