Commodore 128D User Manual page 247

Hide thumbs Also See for 128D:
Table of Contents

Advertisement

APPEND
AUTO
—Append data to the end of a sequential file
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 num
ber are 0 and 8 respectively.
Variables or expressions used as filenames must be enclosed within
parentheses.
EXAMPLES: APPEND # 8, "MYFILE"
APPEND # 7, (A$),D0,U9
OPEN logical file 8
called "MYFILE" for
appending with
subsequent PRINT*
statements.
OPEN logical file
named by the
variable in A$ on
drive 0, device
number 9, and
prepare to APPEND.
NOTE: Append is generally useful for sequential file types only. It
should not be used to merge or add to basic programs. If the file
does not exist, a "FILE NOT FOUND" error is returned. You cannot
create new files with APPEND.
—Enable/disable automatic line numbering
AUTO[line#]
This command turns on the automatic line-numbering feature. This
eases the job of entering programs, by automatically typing the line
numbers for the user. As each program line is entered by pressing
RETURN, the next line number is printed on the screen, and the cur
sor is positioned two spaces to the right of the line number. The line
number argument refers to the desired increment between line num
bers. AUTO without an argument turns off the auto line numbering,
as does RUN. This statement can be used only in direct mode (out
side of a program).
239
BASIC 7.0 ENCYCLOPEDIA—Basic Commands and Statements

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 128D and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents