Int 21/AH=16h

Prev Next Ralf Interrups Categories Contents

------

DOS 1+ - CREATE OR TRUNCATE FILE USING FCB

AH = 16h
DS:DX -> unopened FCB (see #01345), wildcards not allowed

Return:
AL = status 00h successful FFh directory full or file exists and is read-only or locked

Notes: If file already exists, it is truncated to zero length. If an extended FCB is used, the file is given the attribute in the FCB; this is how to create a volume label in the disk's root dir. Not supported by MS Windows 3.0 DOSX.EXE DOS extender. (FAT32 drive) this function will only succeed for creating a volume label; FAT32 does not support FCBs for file I/O

See Also: AH=0Fh - AH=10h - AH=3Ch

Category: DOS Kernel - Int 21h - D

------

Prev Next Ralf Interrups Categories Contents