Code:
txtfilename.Text = txttype.Text & txtdate.Text & ".LOG"
Dim filelocation As String = "c:\mail\Log\" & txtfilename.Text
Dim sr As New System.IO.StreamReader(filelocation)
Dim Line As String
Dim vals() As String
Dim threads() As String
Do
Line = sr.ReadLine()
If Line Is Nothing Then Exit Do
vals = Line.Split(" ")
If InStr(Line, txtsearch.Text) > 0 Then
If Len(vals(7)) = 5 Then
txtmessage.Text += vals(7) & vbCrLf
txtmessage.Text = Line
I want action here!!!
End If
End If
Loop While Not Line Is Nothing
sr.Close()
I cant think of a way of doing it???