I am using the below code and for some reason, it's not recognizing the code:
Dim TextLine As String Dim Filename As String Filename = "c:\test.txt" Open (Filename) For Input as #1 Line Input #1, TextLine TextBox1.Text = TextLine Line Input #1, TextLine TextBox2.Text = TextLine Close()
It would show a blue line underneath Open, For Input as #1, Line Input #1.
Basically, I have an external txt file that it'll read, test.txt. And in this file it has two lines of text, first line it says Test 1 and the second line it has Test 2. But it's not recognizing the command to open and to input. Please help! I have been working on this for over a week. Thanks in advance.