The are many different ways so the following sample is just a one of them:
VB Code:
Public Function GetTextFromLine(sFile As String, iLine As Long) As String
Dim sText$, arText() As String, sLine$
Open sFile For Input As #1
'read entire file into a string variable
sText = Input(LOF(1), #1)
'split text into array
arText = Split(sText, vbNewLine)
'read specific line
sLine = arText(iLine - 1)
Close #1
GetTextFromLine = sLine
End Function
'usage:
Private Sub Command2_Click()
Text1.Text = GetTextFromLine("c:\temp\test1.txt", 3)
End Sub