digitaldrew
Well-known member
- Joined
- Nov 10, 2012
- Messages
- 167
- Programming Experience
- Beginner
I'm currently using VB Express 2010 and I've been having problems with reading one specific line out of about 5 lines of text..Here is a piece of the code I'm using:
I am wanting look at the text result and find the line that has "status" in it..When I find that line I want to take it and display it in the txtLog.
Any ideas where I'm going wrong here?
VB.NET:
Dim reader As New StreamReader(datastream)
Dim line As String = ""
While Not reader.EndOfStream
line = FileReader.ReadLine()
If (line.Contains("status") = True) Then
Name = (line)
Exit While
End If
End While
txtLog.AppendText(singledomain & " " & Name & " " & Now & vbCrLf)
I am wanting look at the text result and find the line that has "status" in it..When I find that line I want to take it and display it in the txtLog.
Any ideas where I'm going wrong here?