Finds a specific pattern in a file.