Need help with parsing a file

(imported topic written by jaf0onl91)

Hello. I have a text file which I need to parse through and count the number of times the following string occurs, “Error finding domain.”. The text file is located in c:\temp and the name of the file is xyz.txt as an example.

The text file contains many lines and the “Error finding domain.” will appear on a line of it’s own.

Any help would be appreciated.

(imported comment written by jessewk)

number of lines whose (it contains “Error finding domain.”) of file “c:\temp\xyz.txt”

(imported comment written by jaf0onl91)

Thank you so much !!!