It depends on how you want to import the data. Is the contents delimeted or do you want to read entire lines?
Code:
Dim Val1,Val2,Val3
Open ("C:\test.txt") For Input As #1
Input#1,Val1,Val2,Val3
Close #1
Dim sLine As String
Open ("C:\test.txt") For Input As #1
Line Input#1,sLine
Close #1
Or do you want to read the entire file?
[tt]
Open ("C:\test.txt" For Binary As #1
AllLines$ = String$(Lof(1), 32)
Get #1, 1, AllLines$
Close #1
Text1.Text = AllLines$
[/tt]
I guess there are several ways to do this.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.