Home > Available Help Files > PC-DMIS BASIC Language > Language Reference A – Z > Input # Statement > Example - Input # Statement
Current Help File: PC-DMIS Basic (View Core Help)
Example - Input # Statement
Sub Main() Dim MyString, MyNumber Open "D:\Temp\TESTFILE.txt" For Input As #1 ' Open file for input. Do While Not EOF(1) ' Loop until end of file. Input #1, MyString ' Read each line into a variable. MsgBox MyString Loop Close #1 ' Close file. End Sub