vb
Dim nFileNum As Integer, sText As String, sNextLine As String, lLineCount As Long
'==================================
Private Sub Command1_Click()
Dim strInputString As String
Dim strFilterText As String
Dim astrSplitItems() As String
Dim astrFilteredItems() As String
Dim strFilteredString As String
Dim intX As Integer
' Get a free file number
nFileNum = FreeFile
' Open a text file for input. inputbox returns the path to read the file
Open "C:\1.txt" For Input As nFileNum
lLineCount = 1
' Read the contents of the file
Do While Not EOF(nFileNum)
Line Input #nFileNum, sNextLine
'do something with it
'add line numbers to it, in this case!
sNextLine = sNextLine & vbCrLf
sText = sText & sNextLine
Loop
'strInputString = InputBox("Enter a comma-delimited string of items:", _
"String Array Functions")
strInputString = sText
' strFilterText = InputBox("Enter Filter:", "String Array Functions")
' Print "Original Input String: "; strInputString
' Print
' Print "Split Items:"
astrSplitItems = Split(strInputString, ";")
For intX = 0 To UBound(astrSplitItems)
'Print "item("; intX; "): "; astrSplitItems(intX)
Text1.Text = astrSplitItems(1)
Text2.Text = astrSplitItems(2)
Text3.Text = astrSplitItems(3)
Text4.Text = astrSplitItems(4)
Next
'Text1.Text = sText
' Close the file
Close nFileNum
End Sub
Mod Edit: Please use code tags when posting your code. Code tags are used like so =>

Thanks,
PsychoCoder