void open( const char *filename,
ios_base::openmode mode = ios_base::in ); (1) void open( const std::string &filename,
ios_base::openmode mode = ios_base::in ); (2) (since C++11)
Opens and associates the file with name filename with the file stream.
Calls setstate(failbit) on failure.
Calls clear() on success. (since C++11)
1) Effectively calls rdbuf()->open(filename, mode | ios_base::in). (see std::basic_filebuf::o