F="#stream_is_open"><CODE>open</CODE></A>.
</P>

<A NAME="examples"></A>
<H2>Examples</H2>

<H4>Defining a simple <CODE>ofstream</CODE></H4>

<P>The following example uses a <A HREF="../classes/file.html#file_sink"><CODE>file_sink</CODE></A> to define a class similar to a <CODE>std::ofstream</CODE>.

<PRE>    <SPAN CLASS="preprocessor">#include</SPAN> <A STYLE="text-decoration:none" href="../../../../boost/iostreams/device/file.hpp"><SPAN CLASS="literal">&lt;boost/iostreams/device/file.hpp&gt;</SPAN></A>
  