in reply to Parsing an RTF File as plain text.

May or may not be connected but why do you use printf? Try it with plain old print