EasyManua.ls Logo

Commodore RF512C - Append; Record

Commodore RF512C
52 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
19
APPEND
Function
APPEND
is
an
interpreter
command
and
A
is
the
Fo
rmat
BASIC
BASIC
7.0
Syntax
mnemonic of
append
direct
command,
both
can
reopen
an
specific sequential file to
append
data
.
stringS = "O:filename,A:'
APPEND#file"',
"filename"
[,
D drive"', U device"']
APPEND#
fi
le"',(filenameS)
[,
D drive"',U device"']
Remember there has no single instruction
in
BA
SIC 2.0 that's equilvent to A
PPE
ND,
so
the
first
format
can
only work
in
multi-command form.
The
fi
lename
must
be
a
str
i
ng
(i
.e.
name
of some
disk
fi
le).
The
dev
i
ce
"
de
fault value is 8.
The drive'"
de
f
au
lt value
is
O.
Where the
preceding
letters D
and
U please
refer to SY
NTA
X.
Ex
ampl
e:
Refer
to
chapter
FILE
PROGRAMMING
RE
C
ORD
Fun
ction Th
is
in
terpreter
command
can
set the relative file
Form
at
BASIC
BASI
C 7.0
Syntax
Ex
ample
:
pointer to any byte of any record
in
the
file.
st
ringS=
CHR
S
(80)
+CHRS (96 +CHANNEL"')+
CHRS[l
o-recor
d"'
]CHRS
(hi-record"')
[ +
CHRS
(byte"')]
RE
C
ORDN-
file"',record"'[.byte"']
The
file'" must correspond to the
opened
logical
f
il
e.
.
The
r
ecor
d'"
value
is
fr
om 1 to 65535
The byte'" value
is
fr
om
1 to 254
If r
ecord'"
is
hi
gher
than the preset file record
number,
add
iti
onal
r
ecord
(
INPUT
'"
mode)
wi
ll
be
return where record"'
=256
* (hirec'" )+(I
orec
"').
Referto
FILE
PROGRAMMING