bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/C++/C++ Reference
C++•C++ Reference

C++ fstream Library (File Streams)

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.

ClassDescription
filebufA lower level file handling class used internally by the fstream , ifstream and ofstream classes
fstreamA class that can read and write to files
ifstreamA class that can read from files
ofstreamA class that can write to files

Learn more about files in our C++ Files Tutorial .

Previous

C++ iostream Library (Standard Input / Output Streams)

Next

C++ cmath Library