Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Searching for text within files.

Status
Not open for further replies.

KarveR

MIS
Dec 14, 1999
2,065
GB
Is there anything like the equivalent of grep in c# or will I need to build my own ?

I have a directory full of files and i'd like to find a text string within them, and return the filename.

Any clues hgints manual pages, or other resources greatly appreciated, thanks.

K.

______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
You may need to "open" each file and go line by line to search for the text. There is nothing native to .net that I know of like grep. If you find something, please let me know
 
Ok thanks. Let the work begin :)

______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top