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

basic_ifstream::basic_ifstream
basic_ifstream();
explicit basic_ifstream(const char *filename,
ios_base::openmode mode = ios_base::in);
The first constructor initializes the base class by calling basic_istream(sb), where sb is
the stored object of class basic_filebuf<Elem, Tr>. It also initializes sb by calling
basic_filebuf<Elem, Tr>().
The second constructor initializes the base class by calling basic_istream(sb). It also
initializes sb by calling basic_filebuf<Elem, Tr>(), then sb.open(filename,
mode | ios_base::in). If the latter function returns a null pointer, the constructor calls
setstate(failbit).
basic_ifstream::close
void close();
The member function calls rdbuf()-> close().
basic_ifstream::is_open
bool is_open();
The member function returns rdbuf()-> is_open().
basic_ifstream::open
void open(const char *filename,
ios_base::openmode mode = ios_base::in);
The member function calls rdbuf()-> open(filename, mode | ios_base::in).
If that function returns a null pointer, the function calls setstate(failbit).
basic_ifstream::rdbuf
basic_filebuf<Elem, Tr> *rdbuf() const
The member function returns the address of the stored stream buffer.
basic_ofstream
template <class Elem, class Tr = char_traits<Elem> >
class basic_ofstream : public basic_ostream<Elem, Tr> {