Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Int 21h Function 40h
 Summary Example                         Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     If the carry flag is returned clear but AX < CX, then a partial
     record was written or there is an error. This can be caused by a
     CTRL+Z (1Ah) embedded in the data if the destination is a
     character device in cooked mode or by a disk-full condition if the
     destination is a file.
 
     If the function is called with CX = 0, the file is truncated or
     extended to the current file pointer position.
 
     [Version 3.0+]
     If the program is running on a network, the user must have Write
     access rights to the directory and file.
                                    -♦-