#include <fstream.h>
The ifstream class is an istream derivative specialized for disk file input. Its constructors automatically create and attach a filebuf buffer object.
The filebuf class documentation describes the get and put areas and their associated pointers. Only the get area and the get pointer are active for the ifstream class.
Construction/Destruction — Public Members
Constructs an ifstream object.
Destroys an ifstream object.
Operations — Public Members
Opens a file and attaches it to the filebuf object and thus to the stream.
Closes the stream’s file.
Associates the specified reserve area to the stream’s filebuf object.
Sets the stream’s mode to binary or text.
Attaches the stream (through the filebuf object) to an open file.
Status/Information — Public Members
Gets the stream’s filebuf object.
Returns the file descriptor associated with the stream.
Tests whether the stream’s file is open.