I am trying to split an RTF file into lines (in my code) and I am not quite getting it right, mostly because I am not really grokking the entirety of the RTF format. It seems that lines can be split by \par or \pard or \par\pard or any number of fun combinations.
I am looking for a piece of code that splits the file into lines in any language really.
I coded up a quick and dirty routine and it seems to work for pretty much anything I’ve been able to throw at it. It’s in VB6, but easily translatable into anything else.