Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to convert RTF to plain text ?

How to convert RTF to plain text ?

Scheduled Pinned Locked Moved C / C++ / MFC
c++comtestingtoolshelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    csc
    wrote on last edited by
    #1

    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.

    S 1 Reply Last reply
    0
    • C csc

      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.

      S Offline
      S Offline
      Stuart Dootson
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups