Added a method to scan file for string