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.
class | contents | |
filebuf | ![]() | Its urpose is to set the file buffers to read and write. |
fstreambase | ![]() | Provides operations common to the file streams. |
ifstream | ![]() | Provides input operations. |
ofstream | ![]() | Provides output operations. |
fstream | ![]() | Provides support for simulatneous input and ourput operations. |