bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths
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

This chapter

Overview
9

Lessons

22m

Read time

1. C++ Keywords2. C++ iostream Library (Standard Input / Output Streams)3. C++ fstream Library (File Streams)4. C++ cmath Library5. C++ string Library6. C++ cstring Library7. C++ ctime Library8. C++ vector Library9. C++ algorithm Library