The Microsoft Input/Output Stream Classes (iostream.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
class ifstream
◄istream►                                     ◄Up► ◄Contents► ◄Index► ◄Back►
──The Microsoft iostream Classes────────────────────────────────────────────
 
  Description
 
  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.
 
  #include <fstream.h>
 
  See Also
 
  ◄filebuf►, ◄streambuf►, ◄ofstream►, ◄fstream►
 
  Public Members
 
  Construction/Destruction
 
  ◄ifstream►   Constructs an ifstream object.
 
  ◄~ifstream►   Destroys an ifstream object.
 
  Operations
 
  ◄open►      Opens a file and attaches it to the filebuf object and thus
              to the stream.
 
  ◄close►     Closes the stream's file.
 
  ◄setbuf►    Associates the specified reserve area to the stream's
              filebuf object.
 
  ◄setmode►   Sets the stream's mode to binary or text.
 
  ◄attach►    Attaches the stream (through the filebuf object) to an open
              file.
 
  Status/Information
 
  ◄rdbuf►     Gets the stream's filebuf object.
 
  ◄fd►        Returns the file descriptor associated with the stream.
 
  ◄is_open►   Tests whether the stream's file is open.
 
 
                                     -♦-