Flash cards
Review the key moves
1/3
Core idea
What is the main idea behind C++ fstream Library (File Streams)?
Lesson checks
Practice each idea before moving on
Short Mimo-style checks built from this lesson's code, terms, and sequence.
1Quick choice
Which statement best captures the main point of this lesson?
2Order
Put the learning moves in the order that makes the concept easiest to apply.
A list of useful fstream classes can be found in the table below.
The <fstream> library provides classes for reading and writing into files or data streams.
C++ fstream classes
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 .