thexder1
12 years agoContributor
searching a log file
I am trying to search a log file to see if there are more than 1 instance of a specific term. Currently I am reading the file one line at a time using aqFile.ReadLine() and using aqString.Find() to search the line for the term. The problem is that this takes a long time on a several thousand line log file. Is there a faster way of doing this? I see that I can read the entire file into a string but I am not sure that a string can handle possible a couple of MB of text.