Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Programmers Reference 0.02b - <b>function 5bh (91) create new file . dos 3.0</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
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
    exist.

       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 3Ch 5Ah 59h

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson