<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>libstdc++: fstream File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript"> $(document).ready(initResizable); </script> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.4 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">libstdc++</div> </td> </tr> </tbody> </table> </div> </div> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> initNavTree('a00881.html',''); </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#nested-classes">Classes</a> | <a href="#namespaces">Namespaces</a> | <a href="#define-members">Defines</a> </div> <div class="headertitle"> <div class="title">fstream File Reference</div> </div> </div> <div class="contents"> <p><a href="a00881_source.html">Go to the source code of this file.</a></p> <h2><a name="nested-classes"></a> Classes</h2> <ul> <li>class <a class="el" href="a00247.html">std::basic_filebuf< _CharT, _Traits ></a> <dl class="el"><dd class="mdescRight">The actual work of input and output (for files).This class associates both its input and output sequence with an external disk file, and maintains a joint file position for both sequences. Many of its semantics are described in terms of similar behavior in the Standard C Library's <code>FILE</code> streams. <a href="a00247.html#details">More...</a><br/></dl><li>class <a class="el" href="a00395.html">std::basic_fstream< _CharT, _Traits ></a> <dl class="el"><dd class="mdescRight">Controlling input and output for files.This class supports reading from and writing to named files, using the inherited functions from <a class="el" href="a00249.html" title="Merging istream and ostream capabilities.This class multiply inherits from the input and output strea...">std::basic_iostream</a>. To control the associated sequence, an instance of <a class="el" href="a00247.html" title="The actual work of input and output (for files).This class associates both its input and output seque...">std::basic_filebuf</a> is used, which this page refers to as <code>sb</code>. <a href="a00395.html#details">More...</a><br/></dl><li>class <a class="el" href="a00396.html">std::basic_ifstream< _CharT, _Traits ></a> <dl class="el"><dd class="mdescRight">Controlling input for files.This class supports reading from named files, using the inherited functions from <a class="el" href="a00250.html" title="Controlling input.This is the base class for all input streams. It provides text formatting of all bu...">std::basic_istream</a>. To control the associated sequence, an instance of <a class="el" href="a00247.html" title="The actual work of input and output (for files).This class associates both its input and output seque...">std::basic_filebuf</a> is used, which this page refers to as <code>sb</code>. <a href="a00396.html#details">More...</a><br/></dl><li>class <a class="el" href="a00399.html">std::basic_ofstream< _CharT, _Traits ></a> <dl class="el"><dd class="mdescRight">Controlling output for files.This class supports reading from named files, using the inherited functions from <a class="el" href="a00251.html" title="Controlling output.This is the base class for all output streams. It provides text formatting of all ...">std::basic_ostream</a>. To control the associated sequence, an instance of <a class="el" href="a00247.html" title="The actual work of input and output (for files).This class associates both its input and output seque...">std::basic_filebuf</a> is used, which this page refers to as <code>sb</code>. <a href="a00399.html#details">More...</a><br/></dl></ul> <h2><a name="namespaces"></a> Namespaces</h2> <ul> <li>namespace <a class="el" href="a01137.html">std</a> </ul> <h2><a name="define-members"></a> Defines</h2> <ul> <li><a class="anchor" id="a148ec20ec7304a4d1063e5177362b1d2"></a><!-- doxytag: member="fstream::_GLIBCXX_FSTREAM" ref="a148ec20ec7304a4d1063e5177362b1d2" args="" --> #define <b>_GLIBCXX_FSTREAM</b> </ul> <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p>This is a Standard C++ Library header. </p> <p>Definition in file <a class="el" href="a00881_source.html">fstream</a>.</p> </div></div> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="a00881.html">fstream</a> </li> <li class="footer">Generated by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </li> </ul> </div> </body> </html>