Different classes used for reading and writing to and from files are as follows:
Classes | Description |
ofStream | This class is used for writing onto files |
ifStream | It is used for reading from files |
fStream | It is used for both reading and writing onto files |