word file searching

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shanmugamit
    New Member
    • Feb 2008
    • 45

    word file searching

    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....
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    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.

    Comment

    • shanmugamit
      New Member
      • Feb 2008
      • 45

      #3
      Originally posted by Atli
      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

      Comment

      Working...