• Post Reply Bookmark Topic Watch Topic
  • New Topic

Word count of a MSWord file

 
Vidyadhar Hegde
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
I am writing a program to count number of words in a file. I am able to do if the file is .txt or .bat. But how to get the same for the files like .doc.
Please help me.
Thanks in advance.
------------------
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You do it much the same way but, you have to ignore any format encodeing that is specific to the document. To uderstand what this is, Microsoft Word Document Format Specifications must be understood.
Hope this helps
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!