f78 Reading and writing files

Contents|Index|Previous|Next

Reading and writing files

These methods are declared in fstream.h. You can read data from class ifstream with any operation from class istream. There are also a few specialized facilities, as in the following methods.

ifstream::ifstream () 
Constructor 
ifstream::ifstream (int fd) 
Constructor 
ifstream::ifstream (const char* fname [, int mode [, int prot]]) 
Constructor 
void ifstream::open (const char* fname [, int mode [, int prot]]) 
Method 

You can write data to class ofstream with any operation from class ostream. The following documentation discusses a few specialized facilities.

ofstream::ofstream () 
Constructor 
ofstream::ofstream (int fd) 
Constructor 
ofstream::ofstream (const char* fname [,int mode [,int prot]]) 
Constructor 
ofstream::~ofstream () 
Destructor 
void ofstream::open (const char* fname [,int mode [,int prot]]) 
Method 
void fstreambase::close () 
Method 
0