Hey guys, first off I have been researching how to do this all week and cannot pull it off in my code. I want a text file to be read line by line so I can use the data of the lines in a text boxes.

So far I've got this which reads the lines of the text file:

Code:
Dim sr As StreamReader = New StreamReader("D:\Test.txt")

Dim line As String = Nothing
Dim linecount As Integer = 0

 Do
      line = sr.ReadLine()
      If Not line = Nothing Then
        linecount += 1
      End If
    Loop Until line Is Nothing
But I dont know how to retreive the read lines. A solution would be great, thanks.