home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_144 / 7.ddi / IOSTRSRC.ZIP / FSCLOSE.CPP next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  918 b   |  31 lines

  1. /*[]------------------------------------------------------------[]*/
  2. /*|                                                              |*/
  3. /*|     fsclose.cpp                                              |*/
  4. /*|                                                              |*/
  5. /*|     Class fstreambase                                        |*/
  6. /*|          void fstreambase::close()                           |*/
  7. /*|                                                              |*/
  8. /*[]------------------------------------------------------------[]*/
  9.  
  10. /*
  11.  *      C/C++ Run Time Library - Version 5.0
  12.  *
  13.  *      Copyright (c) 1990, 1992 by Borland International
  14.  *      All Rights Reserved.
  15.  *
  16.  */
  17.  
  18. #include <ioconfig.h>
  19. #include "filesys.h"
  20. #include <fstream.h>
  21.  
  22. void fstreambase::close()
  23. {
  24.     if( buf.close() )
  25.         clear(ios::goodbit);
  26.     else
  27.         setstate(ios::failbit);
  28. }
  29.  
  30.  
  31.