Assembly Language Help (alang.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 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.
                                    -♦-