Radio Shack TRS-80 Trsdos & Disk Basic Reference Manual page 132

Micro computer system
Hide thumbs Also See for TRS-80:
Table of Contents

Advertisement

DISK BASIC
Note:
You
can
also
use the
CHR$
function
to
insert
other
delimiters
and
control
codes
into the
file,
for
example:
CHR$(
10)
< LF >
Line
Feed
CHR$(13)
carriage
return
(<EN>character)
CHR$(
1
1
)
or
CHR$(
1
2)
line-printer
top-of-form
USING
Option
This option
makes
it
easy to write
files
in a
carefully
controlled
format.
You
could
create
a
report
file
this
way, which then
could be
LISTed
or
PRINTed
(TRSDOS
commands).
Or you
could use
this
option
to control
how
many
characters
of
a
value
are
written to
disk.
For
example, suppose:
A$="LUDWIG"
B$="VAN"
C$="BEETHOVEN"
Then
the
statement
PRINTttL USING"
!
.
!
.
"/.
Y.*i
Mi
B$;
C*
would
write the data
in
nickname
form:
L.V.BEET
<EN>
(In
this case,
we
didn't
want
to
add any
explicit delimiters.)
See the
PRINT USING
description
in
the
LEVEL
II
BASIC
Reference
Manual
for
a
complete
explanation of the
field-specifiers.
Technical Note:
The
above
discussion ignores the
role
of the
output
buffer
in
the sequential write
process. Actually,
the data
is
first
placed
into the buffer,
and
then,
as
256-byte
records
are
filled,
the data
is
written to the disk
file.
That's
why
there
isn't
always
a
disk access
during execution of each
PRINT*
statement.
7-46

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents