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.
@GetFileSize Macro
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Include:   DOS.INC
 
  Syntax:    @GetFileSize handle
 
  Summary:   Gets the file size by moving the file pointer to
             end-of-file
 
             NOTE: The file pointer is reset to zero. Thus this
                   macro should not be called during operations that move
                   the pointer.
 
  Argument:  <handle>     Previously opened file handle.
 
  Returns:   If carry: clear, file length in DX:AX
 
  Modifies:  AX, BX, CX, DX
 
  See also:  Int 21h Function 42h
                                    -♦-