02.10.2012 Views

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter —Program Instructions<br />

LINE INPUT#<br />

Purpose Statement for assigning an entire line, including punctuation marks, from<br />

a sequential file or a device to a single string variable.<br />

Syntax LINE ↔ INPUT#,<br />

is the number assigned to the file when it was OPENed.<br />

is the string variable to which the input line is assigned.<br />

Remarks This statement differs from the INPUT# statement in that an entire line of<br />

max. 32,767 characters will be read, and possible commas in the line will<br />

be included in the string as punctuation marks instead of dividing it into<br />

portions.<br />

When reading from a sequential file, the lines can be read one after the<br />

other by the repeated issuing of LINE INPUT# statements, using the same<br />

file reference.<br />

Once a line has been read, it cannot be read again until the file is CLOSEd<br />

and then OPENed again.<br />

The LINE INPUT# statement is useful when the lines in a file has been<br />

broken into fields.<br />

Note that LINE INPUT# filters out any incoming ASCII 00 dec. characters<br />

(NUL).<br />

Example This example assigns data from the three first lines of the file "Addresses"<br />

to the string variables A$, B$, and C$ respectively:<br />

. . . . .<br />

. . . . .<br />

100 OPEN "ADDRESSES" FOR INPUT AS #5<br />

110 LINE INPUT# 5, A$<br />

120 LINE INPUT# 5, B$<br />

130 LINE INPUT# 5, C$<br />

. . . . .<br />

. . . . .<br />

1 <strong>Intermec</strong> Fingerprint <strong>v8.70.0</strong>/v10.0.0 Programmer´s <strong>Reference</strong> <strong>Manual</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!