qa.hlp (Table of Contents; Topic list)
Int 21H Function 40H
   Summary  Notes  Example  Back
──────────────────────────────────────────────────────────────────────────────
 
  Description:  Write 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 from the buffer
  into the file and then updates the file pointer position.
 
  Input                                     Output
  ══════════════════════════════            ══════════════════════
  AH=40H                                    If function successful
  BX=handle                                 Carry Flag=clear
  CX=number of bytes to write               AX=bytes transferred
  DS:DX=segment:offset of buffer            Carry flag=set
                                            AX=error code
                                    -♦-