Sharp MZ-700 Instrukcja Właściciela Strona 85

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 109
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 84
87
CLOSE #
CLOSE
#4
Closes the BSD; the file opened in logical number 4 by
(Corresponding to the
ROPEN
# statement.
ROPEN
#)
Logical number 4 becomes undefined once more.
5.1.4 BRD (BASIC Random Access, Data File) Control Statements
Note: For file descriptor
FD
only.
XOPEN #
XOPEN
#5
"FD3:D Opens (cross opens) for data write-inlread-out to the
PRINT
#(
)
INPUT
#(
)
CLOSE #
ATA
R1
n BASIC random access file (BRD).
In other words, cross opens BRD file
"DATA
RI"
on the
floppy disk
in
drive number 3 to logical number 5, or, if
the file does not yet exist, cross opens so that the BRD
file
"DATA
RI"
can be newly made on that floppy disk.
PRINT
#5(11).
R(11)
Writes in the content
of
a one-dimensional numerical
array variable
R(l1)
to element
11
of the BRD
file
opened in logical number 5
by
the XOPEN # statement.
PRINT #5(20). AR$. Writes in string variables AR$ and AS$ to, respectively,
AS$ elements
20
and
21
of the same BRD
as
above. Because
all elements in the BRD are a fixed length of
32
bytes,
any part of the string length which exceeds
32
bytes
will
be invalid.
INPUT #5(21).
R$
Reads out (substitutes), to string variable R$, the data in
element
21
of
the BRD file opened to logical number 5
by
the XOPEN # statement.
INPUT #5(11).
A(11).
Reads out the data in elements
11
and
12
of
the BRD, as
A$(12) described above, to the one-dimensional numerical array
variable A(11) and one-dimensional string array variable
A$(12) respectively.
CLOSE
#5
CLOSE
Closes the BRD file opened to logical number 5 by the
XOPEN
# statement.
Closes all files opened by WOPEN, ROPEN
or
XOPEN.
Przeglądanie stron 84
1 2 ... 80 81 82 83 84 85 86 87 88 89 90 ... 108 109

Komentarze do niniejszej Instrukcji

Brak uwag