How to convert RTF to plain text ?
-
Hello to all, i need to read a RTF file via iostream and convert it internally into plain text. The plain text should be searched for some keywords ... and the text between these keywords should be stored into an other (different) file. The problem is not to read the RTF via iostream. The problem is to skip all these formatting instructions of the RTF, because i need only the plain text. Solving that, i need some code snippet ... but i haven't found something like that. Additionally, the code should not use COM, DCOM, Automation of MS Word or somthing like that. Just a peace of C++ code. Anybody out there ... having an idea how-to or look-where ??? Thank's for any idea.
-
Hello to all, i need to read a RTF file via iostream and convert it internally into plain text. The plain text should be searched for some keywords ... and the text between these keywords should be stored into an other (different) file. The problem is not to read the RTF via iostream. The problem is to skip all these formatting instructions of the RTF, because i need only the plain text. Solving that, i need some code snippet ... but i haven't found something like that. Additionally, the code should not use COM, DCOM, Automation of MS Word or somthing like that. Just a peace of C++ code. Anybody out there ... having an idea how-to or look-where ??? Thank's for any idea.
This article[^] is in C#, but probably covers the basics so you could write a C++ version
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p