C++ fstream Library (File Streams)
C++ fstream classes
The <fstream> library provides classes for reading and writing into files or data streams.
A list of useful fstream classes can be found in the table below.
| Class | Description |
|---|---|
| filebuf | A lower level file handling class used internally by the fstream, ifstream and ofstream classes |
| fstream | A class that can read and write to files |
| ifstream | A class that can read from files |
| ofstream | A class that can write to files |
Learn more about files in our C++ Files Tutorial.