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 3FH
   Summary  Notes  Example  Back
──────────────────────────────────────────────────────────────────────────────
 
  Description:  Read File or Device
 
  Given a valid file handle from a previous open or create operation, a
  buffer address, and a length in bytes, transfers data at the current file
  pointer position from the file into the buffer and then updates the file
  pointer position.
 
  Input                                     Output
  ══════════════════════════════            ══════════════════════════════
  AH=3FH                                    If function successful
  BX=handle                                 Carry flag=clear
  CX=number of bytes to read                AX=bytes transferred
  DS:DX=segment:offset of buffer            If function unsuccessful
                                            Carry flag= set
                                            AX=error code
                                    -♦-