Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
I want to find files including special strings. I know how to do it, if the file with format ".txt". Can anyone tell me how to do it, if the file is MS Word document or "rtf"?
Posted

1 solution

Hi,

there is an infinite number of file formats. When you know the format and want to access the file content, theoretically there are a few strategies:

1.
use the original application; it may have an API so you can interface it. Example: Office has an API through the "Primary Interop Assembly".

2.
look for the file format specification (it may be public, it could be a public standard; it can also be proprietary), and implement your code accordingly.
Example: RTF is documented.

3.
find a commercial product that implements #2.

:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900