Int 21H Function 16H
◄Summary► ◄Notes► ◄Back►
──────────────────────────────────────────────────────────────────────────────
Description: Create File
Creates a new directory entry in the current directory or truncates any
existing file with the same name to zero length. Opens the file for sub-
sequent read/write operations.
Input Output
═══════════════════════ ════════════════════════════════════════════
AH=16H If function successful (file was created
DS:DX=segment:offset of or truncated)
unopened file AL=00H
control block and FCB filled in by MS-DOS as follows:
drive field (offset 00H)=1 for drive A,
2 for drive B, etc.
current block field (offset 0CH)=00H
record size field (offset 0EH)=0080H
size field (offset 10H)=file size
from directory
date field (offset 14H)=date stamp
from directory
time field (offset 16H)=time stamp
from directory
If function unsuccessful (directory full)
AL=FFH
-♦-