bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

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

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.

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