en:docs:dos:api:int21:16

Note: This API call is for DOS personality only. Use Family API for portability.

2018/09/07 07:04 · prokushev

Int 21H, AH=16H

Version

1 and higher

Brief

CREATE OR TRUNCATE FILE USING FCB

Family API

Input

      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

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

Note


en/docs/dos/api/int21/16.txt · Last modified: 2020/12/08 09:10 by prokushev