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 16H
◄Summary► ◄Notes► ◄Back►
──────────────────────────────────────────────────────────────────────────────
▀ This function also opens the file; a subsequent call to Int 21H Func-
tion 0FH is not required.
▀ Since an existing file with the specified name is truncated to zero
length (i.e., all data in that file is irretrievably lost), this func-
tion must be used with caution.
▀ If this function is called with an extended file control block (FCB),
the new file may be assigned a special attribute such as hidden or
system during its creation by setting the appropriate bit in the ex-
tended FCB's attribute byte.
▀ For format of directory time and date, see Int 21H Function 57H.
▀ Int 21H Functions 3CH, 5AH, 5BH, and 6CH, which provide full access to
the hierarchical directory structure, should be used in preference to
this function.
▀ [3.0+] If the program is running on a network, the user must have
Create rights to the directory that will contain the new file.
-♦-