Standard C++ Library Reference ISO/IEC (VERSION3)

basic_filebuf::char_type
typedef Elem char_type;
The type is a synonym for the template parameter Elem.
basic_filebuf::close
basic_filebuf *close();
The member function returns a null pointer if the file pointer fp is a null pointer. Otherwise, it
calls fclose(fp). If that function returns a nonzero value, the function returns a null pointer.
Otherwise, it returns this to indicate that the file was successfully closed.
For a wide stream, if any insertions have occured since the stream was opened, or since the last
call to streampos, the function calls overflow(). It also inserts any sequence needed to
restore the initial conversion state, by using the file conversion facet fac to call
fac.unshift as needed. Each element byte of type char thus produced is written to the
associated stream designated by the file pointer fp as if by successive calls of the form
fputc(byte, fp). If the call to fac.unshift or any write fails, the function does not
succeed.
basic_filebuf::int_type
typedef typename traits_type::int_type int_type;
The type is a synonym for traits_type::int_type.
basic_filebuf::is_open
bool is_open();
The member function returns true if the file pointer is not a null pointer.
basic_filebuf::off_type
typedef typename traits_type::off_type off_type;
The type is a synonym for traits_type::off_type.
basic_filebuf::open
basic_filebuf *open(const char *filename,
ios_base::openmode mode);
The member function endeavors to open the file with filename filename, by calling