qa.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 23H
   Summary  Notes  Back
──────────────────────────────────────────────────────────────────────────────
 
  Description:  Get File Size
 
  Searches for a matching file in the current directory; if one is found,
  updates the FCB with the file's size in terms of number of records.
 
  Input                             Output
  ══════════════════════            ═════════════════════════════════════
  AH=23H                            If function successful (matching file
  DS:DX=segment:offset               found)
        of unopened file            AL=00
        control block               and FCB relative-record field (offset
                                     21H) set to the number of records in
                                     the file, rounded up if necessary to
                                     the next complete record
                                    If function unsuccessful (no matching
                                     file found)
                                    AL=FFH
                                    -♦-