Slide 2.1: Opening and closing files
Slide 2.3: Opening and closing files (cont.)
Home

Opening and Closing Files (Cont.)


This course will heavily use the file operations of C++. The following hierarchy shows the classes for input and output operations of C++.

click on a class for detailed information

iostream hierarchy of classes (char instantiation): ios_base, ios, istream, ostream, iostream, streambuf, ifstream, fstream, ofstream, filebuf, istringstream, stringstream, ostringstream, stringbuf

Line-by-ling analysis of the previous C++ program is given as follows: