By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,614 Members | 1,680 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,614 IT Pros & Developers. It's quick & easy.

word file searching

P: 45
hi,
i have 2 lacks word file in that i want search the keyword from that word files.
but i using file method it too much time to search data.any one give idea to search data good method like any algorithm is there....
Sep 16 '08 #1
Share this Question
Share on Google+
2 Replies


Atli
Expert 5K+
P: 5,058
Hi.

Word files are not text files, so using functions like fopen to read them is useless.
As far as I can see, they are either encoded or compressed, so you would need some tool to convert them into text.

If your server is running on Windows, you could possibly use COM. (Google can help you there.)

Word can save files as a number of other formats tho, so if you have can, try to save them as plain text, HTML or XML. It would be much easier to work with any of those.
Sep 16 '08 #2

P: 45
Hi.

Word files are not text files, so using functions like fopen to read them is useless.
As far as I can see, they are either encoded or compressed, so you would need some tool to convert them into text.

If your server is running on Windows, you could possibly use COM. (Google can help you there.)

Word can save files as a number of other formats tho, so if you have can, try to save them as plain text, HTML or XML. It would be much easier to work with any of those.
hi,
i using com object but it also take too munch time to search data
Sep 17 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.