use the code below to load/read a text file.
VB Code:
Private Sub command1_Click()
Dim FilePath As String
Dim Temp As String
FilePath = "c:\testn\test.txt"
Open FilePath For Input As #1
'Opens the file given by the user.
Do Until EOF(1)
'Does this loop until End Of File(EOF) for file number 1.
Line Input #1, Temp
'Read one line and puts it into the varible Temp
Text1.Text = Text1.Text & vbCrLf & Temp 'adds the existing text + the next line
'Adds the read line into Text1.
MsgBox "End of file reached!"
Loop
Close #1
End Sub