Programming instructions
Intermec Fingerprint v7.61 – Programmer’s 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 fi le.
Syntax INPUT#<nexp>,<<nvar>|<svar>>[,<<nvar>|<svar>>...]
<nexp> is the number assigned to the fi 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
fi 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 fi le, the records can be read one after
the other by the repeated issuing of INPUT# statements with the same
fi le reference.
Once a fi le record has been read, it cannot be read again until the fi 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# fi lters out any incoming ASCII 00 dec. characters
(NUL).
Example
This example assigns data from the fi rst record in the sequential fi le
"Addresses" to the three string variables A$, B$, and C$ and from the second
record in the same fi 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$
. . . . .
. . . . .