in reply to Reading certain lines in a file

You can always use the Unix command grep if you have access to to it:
grep -i -A 1 'couldn\'t parse' FILE.TXT | tail -1