|Abbreviation:||A SHIFT P|
|Token code:||BASIC 4.0:|
in BASIC ROM:
|List of all BASIC keywords|
Type: Command General Programming-Syntax: APPEND #logical file number,"filename"[,Ddrive number][<ON,>Udevice]
This command opens the file having the specified filename, and positions the pointer at the end of the file. Subsequent PRINT# (write)statements will cause data to be appended to the end of this logical file number. Default values for drive number and device number are 0 and 8 respectively.
Variables or expressions used as filenames must be enclosed within parentheses.
Examples[edit | edit source]
APPEND # 8, "MYFILE"
OPEN logical file 8 called "MYFILE" for appending with subsequent PRINT# statements
APPEND # 7, (A$),D0,U9
OPEN logical file named by the variable in A$ on drive 0, device number 9, and prepare too APPEND
APPEND #1, "FILENAME"
APPEND #2, "DATA,U"
APPEND #3, "D?T*,U"