Exact String Match

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am looking up a string in a text file using the streamreader. Lets say I want to look up the string "name test" in the following file

this is a tes
you can se
name tes
I found i

In this instance it will find line three fine. However, in this instanc

this is a tes
your a name teste
you can se
name tes
I found i

It finds line two and I want it to find line four. The string I'm looking for will ALWAYS be immediately followed by a carriage return. How do I accomplish this

Thank you
Joh
 
Back
Top