17.08.2013 Views

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

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.

LINE INPUT#<br />

Chapter 2 Program Instructions<br />

Field of Application Statement for assigning an entire line, including punctuation marks,<br />

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

Syntax LINE INPUT#,<br />

↔<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. 300 characters will be read, and possible commas in the line will be<br />

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

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

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

reference.<br />

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

then OPENed again.<br />

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

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" to<br />

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 />

<strong>Intermec</strong> Fingerprint 7.2 – Reference Manual Ed. 3 135

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

Saved successfully!

Ooh no, something went wrong!