WWW.NNC.IR
Macro Reference
570
Vision System FH/FZ5 Series
User’s Manual (Z340)
Example
Reads the data until the end of the file.
Useable Modules
Unit Calculation Macro / Scene Control Macro / Communication Command Macro / Unit Macro
Supported Versions
Version 3.50 or later
Related Items
Dim ALLDATA$(255)
Rem Open the file
Open "E:\input.dat" For Input As #1
For I&=0 to 255
Rem Read line by line from the top of the file
Input #1, DATA$
ALLDATA$(I&) = DATA$
Rem Check if the end of the file is reached
If Eof(1) <> 0 Then
Exit For
Endif
Next
Rem Close up the file.
Close #1
Close (Reference: X Details (p.432)) Eof (Reference: X Details (p.510))
Input$ (Reference: X Details (p.571)) Line Input# (Reference: X Details (p.595))
Open For Input As# (Reference: X Details (p.629))