Assembly Language Help (alang.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.
Int 21h Function 3Eh
 Detail Example                          Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Interrupt:   21h     Function:   3Eh
 
  Title:       Close File
 
  See also:    Open File, Delete File, @CloseFile
 
  Description:
 
     Given a handle that was obtained by a previous successful open or
     create operation, flushes all internal buffers associated with the
     file to disk, closes the file, and releases the handle for reuse.
     If the file was modified, the time and date stamp and file size
     are updated in the file's directory entry.
 
     Input          Output
 
     AH = 3Eh       If function successful
     BX = Handle      Carry Flag: clear
 
                    If function unsuccessful
                      Carry flag: set
                      AX = Error code (06h)
                      See: Error codes
                                    -♦-