Find in Files

  • Thread starter Thread starter VJ
  • Start date Start date
V

VJ

I am looking to do a Find in Files function , I want to be able to search
for Txt String in a specific folder, the folder could contain any type of
file. I would be able to want to search any file other than picture or image
files.. that would be of great help.

Thanks
VJ
 
There's no readymade API to do this. You'd have to write your own.

Lookup:

System.IO.Directory.GetFiles
System.IO.StreamReader.ReadToEnd
string.IndexOf

-vj
 
I should warn you that this is probably not the most efficient way of
searching text.

-vj
 
Thanks.. Does this work for any file type?

VJ

Vijaye Raji said:
There's no readymade API to do this. You'd have to write your own.

Lookup:

System.IO.Directory.GetFiles
System.IO.StreamReader.ReadToEnd
string.IndexOf

-vj
 
Back
Top