Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TASM 2.x / MASM 6.x Assembly Language - <b>function 16h (22) create file, using fcbs</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Function 16h (22)        Create File, using FCBs

    Creates and opens a new file, or opens an existing file and truncates
    it to zero length.

       On entry:      AH         16h
                      DS:DX      Pointer to an unopened FCB

       Returns:       AL         00h       If file created
                                 FFh       If file not created

       Network:       Requires Create access rights

  --------------------------------------------------------------------------

       Notes:         You can assign special attributes to the file by
                      means of an Extended FCB.

                      The file opened is assigned a length of 0 bytes.
                      Therefore, this function is generally used to open
                      an output file, while function 0Fh is used to open
                      an input file.

                      This function is a holdover from DOS 1.0.  It is
                      preferable to use the new style functions like 3Ch
                      to create a file.

See Also: 0Fh 3Ch 5Ah 5Bh

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