Finding Text Within A File

Hi All

Is there an API call or similar to programmatically mirror the Advanced tab of the NT "Find File" function?

I want to be able to provide 2 or more pieces of text to search for within all the files in a certain directory (and its subdirectories) hopefully without having to write my own and use GetChunk and the like. These will typically be .TXT files.

Any Ideas ?

Many Thanks

Dave
crowleydAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
MTroutwineConnect With a Mentor Commented:
I would suggest looking at this project, it has all of the code and demonstrates searching files for occurances of strings:

http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=3850

:>)
0
All Courses

From novice to tech pro — start learning today.