C# Extension method: Searching lines containing specific string

Searching for lines in text file containing a specific string can be very handy with below code snippet. This method is very optimal specially if we are accessing log/error/access files.


The method can be further improvised to search lines in text files with in a directory containing the specific string.