What is the easiest way to search a text file for a particular string?
I have text files resembling the following :
FILE A HAS 2266 LINES OF WHICH 951 WERE IGNORED
FILE B HAS 2193 LINES OF WHICH 878 WERE IGNORED
THERE WERE 2 DIFFERENCES
Can anyone help me with python scripts (or even java) to search the text file for the string "differences".
Is there a way to read and store the number of differences in a variable ?
Thanks in advance.