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.
ofstream::close
ofstream                                    Up Contents Index Back
──The Microsoft iostream Classes────────────────────────────────────────────
 
  void close();
 
  Remarks
 
  Calls the close member function for the associated filebuf object. This
  function, in turn, flushes any waiting output, closes the file, and
  disconnects the file from the filebuf object. The filebuf object is not
  destroyed.
 
  The stream's error state is cleared unless the call to filebuf::close
  fails.
 
  See Also
 
  filebuf::close, ofstream::open, ofstream::is_open
 
 
                                     -♦-