I have been trying searching the net, for source code for converting RTF file to text file in c/c++.

The source that i get is in RTF file format which conatins is specific tag but i need to convert it to simple text file and upload it..

Any source link to this post would be appreciated.

Thanks in advance.

Recommended Answers

All 3 Replies

Open the file in WORD and output the file as TEXT.

RTF is text, no conversion needed.

Hi,
Seems that you havn't created or read an rtf file in notepad or wordpad.
Try opening any rtf file in notepad, you will see tags that defines the bold, capital, quotes(") indication in sentences.
when u open any rtf file in c/c++ you will see all those which i need to parse and just extract the content of a file and write to another file which would be a normal text containing only text. so any conversion code or rtf parser i would be requiring to do so.!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.