Programming instructions

Intermec Fingerprint v7.61 Programmers Reference Manual Ed. 7 129
Chapter 2 Program Instructions
INPUT#
Field of Application
Statement for reading a string of data from an OPEN device or
sequential le.
Syntax INPUT#<nexp>,<<nvar>|<svar>>[,<<nvar>|<svar>>...]
<nexp> is the number assigned to the le or device when it was
OPENed.
<<nvar>|<svar>> is the variable to which the input data will be assigned.
Remarks
This statement resembles the INPUT statement, but allows the input to
come from other devices than the standard IN channel or from various
les. Like the INPUT statement, commas can be used to assign different
portions of the input to different variables. INPUT# does not allow
prompts to be used.
When reading from a sequential le, the records can be read one after
the other by the repeated issuing of INPUT# statements with the same
le reference.
Once a le record has been read, it cannot be read again until the le is
CLOSEd and then OPENed again.
The maximum number of characters that can be read using an INPUT#
statement is 32,767 characters.
Note that INPUT# lters out any incoming ASCII 00 dec. characters
(NUL).
Example
This example assigns data from the rst record in the sequential le
"Addresses" to the three string variables A$, B$, and C$ and from the second
record in the same le to the string variables D$ and E$:
. . . . .
. . . . .
100 OPEN "ADDRESSES" FOR INPUT AS #5
110 INPUT#5, A$, B$, C$
120 INPUT#5, D$, E$
. . . . .
. . . . .