Function 5Bh (91)        Create New File                              DOS 3.0

Create the specified file, if the file does not already exist.

On entry:      AH         5Bh
CX         File attributes
DS:DX      Pointer to pathname (ASCIIZ string)

Returns:       AX         Handle
Error code, if CF is set

Error codes:   3          Path not found
4          No handle available
5          Access denied
80         File already exists

Call Function 59h for extended error code information.

Network:       Requires Create access rights


This function will create a file if and only if it does not already

Note:          This function is identical to Function 3Ch (Create
File) if the specified file does not already exist.
If the file does exist, however, this function will
fail, whereas 3Ch will truncate the existing file to
zero length, and then open it.

See also: 16h
See also: 3Ch
See also: 5Ah
See also: 59h

5Bh (91) Create New File >= DOS 3.0