qa.hlp (Table of Contents; Topic list)
Int 21H Function 3CH
   Summary  Notes  Example  Back
──────────────────────────────────────────────────────────────────────────────
 
  Description:  Create File
 
  Given an ASCIIZ pathname, creates a new file in the designated or default
  directory on the designated or default disk drive. If the specified file
  already exists, it is truncated to zero length. In either case, the file
  is opened and a handle is returned that can be used by the program for
  subsequent access to the file.
 
  Input                                               Output
  ════════════════════════════════════════            ════════════════════
  AH=3CH                                              If function success-
  CX=file attribute (bits can be combined)             ful
     Bit(s)  Significance (if set)                    Carry flag=clear
     0       read-only                                AX=handle
     1       hidden                                   If function failed
     2       system                                   Carry flag=set
     3       volume label                             AX=error code
     4       reserved (0)
     5       archive
     6-15    reserved (0)
  DS:DX=segment:offset of ASCIIZ pathname
                                    -♦-