victorxstc 0 Newbie Poster

Hi guys and sorry for poor English

I'm about to implement a program in C++ that according to the algorithm, will parse a text file and do further processes on it. I have previous implementations that could read ASCII characters from a plain text file.

I need to extend it that...

1. It can support inputing/outputing RTF, Doc, or Docx formats.
I know they are encrypted formats. But while OpenOffice and AbiWord can read at least RTF and Doc, there would be a code for decrypting those formats to fetch up characters to parse them for other purposes.
I will definitely dig in their source code as much as my technical knowledge allows. However, I wanted to know if a free library, activex, or source code exists to implement this? [Please be so kind to address me possibilities for C# and VB too)
I don't know, maybe MS Visual Studio has such libraries :) I will investigate it too.

2. It can read UTF-16 characters as well. Is there any extensions (libraries, activex, codes) to simply extend my program? I am not in hurry and will dig the open office source too. However, if a solution exists please kindly tell me.
Again I hope Visual Studio can provide such codes. I will check that too.

Thank you so much for your kind responses :)

PS. Searching through the threads, I found these links:
For JAVA:
http://poi.apache.org/index.html
For Visual Studio, something named "Visual Tools" described here:
http://www.daniweb.com/forums/thread98252.html

Any other idea?