Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

<fstream>

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

For the latest documentation on Visual Studio 2017, see <fstream> on docs.microsoft.com. Defines several classes that support iostreams operations on sequences stored in external files.

#include <fstream>  
  

Typedefs

filebufA type basic_filebuf specialized on char template parameters.
fstreamA type basic_fstream specialized on char template parameters.
ifstreamA type basic_ifstream specialized on char template parameters.
ofstreamA type basic_ofstream specialized on char template parameters.
wfstreamA type basic_fstream specialized on wchar_t template parameters.
wifstreamA type basic_ifstream specialized on wchar_t template parameters.
wofstreamA type basic_ofstream specialized on wchar_t template parameters.
wfilebufA type basic_filebuf specialized on wchar_t template parameters.

Classes

basic_filebufThe template class describes a stream buffer that controls the transmission of elements of type Elem, whose character traits are determined by the class Tr, to and from a sequence of elements stored in an external file.
basic_fstreamThe template class describes an object that controls insertion and extraction of elements and encoded objects using a stream buffer of class basic_filebuf<Elem, Tr>, with elements of type Elem, whose character traits are determined by the class Tr.
basic_ifstreamThe template class describes an object that controls extraction of elements and encoded objects from a stream buffer of class basic_filebuf<Elem, Tr>, with elements of type Elem, whose character traits are determined by the class Tr.
basic_ofstreamThe template class describes an object that controls insertion of elements and encoded objects into a stream buffer of class basic_filebuf<Elem, Tr>, with elements of type Elem, whose character traits are determined by the class Tr.

Header Files Reference
Thread Safety in the C++ Standard Library
iostream Programming
iostreams Conventions

Show:
© 2017 Microsoft