read the file line by line in and check every line for your pattern. This is probably the fastest way.