I want to write an app that will search a text file line-by-line for the word error. And if it finds the word error to pipe it out to a text file.
Here is what I have
Dim sr As StreamReader = System.IO.File.OpenText("C:\err.log")
Do Until sr.Peek = -1
SearchString = sr.ReadLine SearchChar = "Error"
But How do I tell it to find the searchChar in the sr.Readline?