chapter 6 Files

Classes for file stream operations :
The I/O system of c++ contains a set of classes that define the file handling methods. These include ifstream,ofstream andfstream. These classes are derived from fstreambase and from correspoinding iostream.h class. These classes, designed to manage the disk files, are declared in fstream.h and therefore we must include this file in any program that uses files.
classcontents
filebufIts urpose is to set the file buffers to read and write.
fstreambaseProvides operations common to the file streams.
ifstreamProvides input operations.
ofstreamProvides output operations.
fstreamProvides support for simulatneous input and ourput operations.