For the hard-coded String it'll work like a charm, unfortunately it won't successfully match line terminators for text files created on Windows, Unix (based) and older Mac OS operating systems. See http://en.wikipedia.org/wiki/Newline.
Joined: Sep 19, 2009
Okay, thanks. I was not worried about OSs. (though I did not say that upfront.) And I did not catch that as an issue or even think about it, which I need to remember.
I am pulling data from a serial device. The coded strings are surrounded by newlines and returns.