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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 109
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 47
INPUT # (Input)
Reads out data from BSO file.
Format:
INPUT # <logical
number>,<variable>,<variable>,
.....
Abbreviated form:
1.#
Explanation:
47
Reads out data in sequence from heading of file opened for read-out by ROPEN #
statement and
is
set to
<variable>.
<variable>
may be array element.
The file which reads out the data becomes the file set to <logical number>
by
ROPEN # statement.
In the same way as for
READ
-
DATA
statements, error
is
generated if data and
<variable>
data type do not coincide.
The end
of
the file data can be determined by the
EOF
function.
However, for FD device only.
Example:
1 0
ROPEN
#2,
"DATA"
20
I NP UT
#2,A,B,C
30
PRI
NT
A,B,C
40
CLOSE
#2
50
END
..... Reads out numerical data from BSD file opened for read-out by logical number 2,
and substitutes to numerical variables A,
Band
C.
References:
ROPEN # (page 46)
CLOSE # (page 53)
EOF
(#)
(page 56)
Przeglądanie stron 47
1 2 ... 43 44 45 46 47 48 49 50 51 52 53 ... 108 109

Komentarze do niniejszej Instrukcji

Brak uwag