Commodore 128 Programmer's Reference Manual page 70

Hide thumbs Also See for 128:
Table of Contents

Advertisement

60
COMMODORE 128
This example opens an existing relative file called "FILE" as file number 2 in
LJ
line 10. Line 20 positions the relative file pointer at the first byte in record number 10.
Line 30 actually writes the data, A$, to file number 2.
j j
REM
Comments or remarks about the operation of a program line
\
REM message
EXAMPLE:
[j
10 NEXT X:REM THIS LINE INCREMENTS X.
RENAME
Li
Change the name of a file on disk
RENAME "old filename" TO "new filename" [,Ddrive number][<ONI,>
J
Udevice number]
EXAMPLES:
jj
RENAME 'TEST" TO "FINALTEST",D0
Change the name of the file
"TEST" to "FINAL TEST".
^
RENAME (A$) TO (B$),D0,U9 Change the filename specified in
L
A$ to the filename specified in B$
on drive 0, device number 9. Re-
\ i
member, whenever a variable name
j_j
is used as a filename, it must be
enclosed in parentheses.
,
RENUMBER
Renumber lines of a BASIC program
J |
RENUMBER [new starting line number][,increment][,old starting line
number]
i I
EXAMPLES:
^
RENUMBER
Renumbers the program starting at 10, and increments
\ \
each additional line by 10.
lj
RENUMBER 20, 20, 1
Starting at line 1, renumbers the program. Line 1 be
comes line 20, and other lines are numbered in incre-
j I
ments of 20.
\J

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents