Forum guidelines
Find files containing string
Posted By Alex on 23 Aug 2005
Occasionally I need to search through all of our archived EDI's trying to find all instances of a particular item. After EDIs are processed they're categorized in various folders. What I'd like to do is create a process that I can pass a string to and it will produce a list of file names (possibly the path too) where that string exists. I could then loop through those file names to produce a report of all instances of the item I'm researching. What I'm asking is how to create a Find Files and Folders for files named[*.*] and containing text[string] within a C# application? Can anyone help me out here? Thanks, Alex
C# Corner Annual Conference 2016


Spire.Doc - Free .NET Word API
Use Spire.Doc to create, read, write, print, and convert word documents to OpenXML, RTF, TXT, XPS, EPUB, EMF, HTML, Image and PDF.