Convert MS word file to text file
Posted on 2011-09-08
I have to convert a MS-word (*.doc/*.docx) file to a text file (*.txt) using a VC++ and MFC.
The problem faced while conversion is that When I try to convert word file to text file the text file is not in the readable form. It shows the text in the form like "´•IOÃ0…ïHü‡ÈW”¸p@5åÀr„JqvIj/ò¸Û¿gÜ%j«¶)P.‘ç½÷yœ™tfºN&àQY“³ë¬Ã0ÒÊT9û¼¤w,Á L!jk ".
Reverse conversion, I mean from text to *.doc is working fine.
I checked the font properties are also same. Even I pasted the converted garbage text to word file, but it produced the same garbage one.
Welcome if any further information required.