Push back the StreamReader position?
Is there a way move back the streamreader position? I'm looking for "88," at the beginning of a line and once it is something else it jumps out of the loop. I need to move back the position of the streamreader 1 line, so it can be read later. Is there a way of doing this? Thanks in advance...
Dim trans_text As String = trans_text.Concat(tmpText, vbCrLf)
tmpText = myStreamReader.ReadLine()
Do While tmpText.Substring(0, 3) = "88,"
If tmpText <> Nothing Then
trans_text = trans_text.Concat(trans_text, tmpText, vbCrLf)
Else ' END OF FILE
Exit Do
End If
tmpText = myStreamReader.ReadLine()
Loop
Dim srPos As Int32 = CType(myStreamReader.BaseStream.Position, Int32)
myStreamReader.BaseStream.Position = srPos - 1