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 5AH
◄Summary► ◄Notes► ◄Example► ◄Back►
──────────────────────────────────────────────────────────────────────────────
▀ The ASCIIZ path supplied to this function should be followed by at least
13 additional bytes of buffer space. MS-DOS adds a backslash () to the
supplied path, if necessary, then appends a null-terminated filename that
is a function of the current time.
▀ Files created with this function are not automatically deleted when the
calling program terminates.
▀ The function fails if
- any element of the pathname does not exist.
- the file is being created in the root directory and the root directory
is full.
▀ [3.0+] If the program is running on a network, the file is created and
opened for read/write access in compatibility sharing mode.
▀ See also Int 21H Functions 3CH, 5BH, and 6CH, which provide additional
facilities for creating files.
-♦-