#include <fstream.h>int setmode(int mode = filebuf::text);

The setmode( ) function is a member of ofstream and ifstream.

The setmode( ) function sets the mode of the associated stream to either binary or text. (Text is the default.) The valid values for mode are filebuf::text and filebuf::binary.

The function returns the previous mode setting or –1 if an error occurs.

A related function is open( ).

C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539 © 2008-2017.
If you may any questions please contact us: