Yes - use StreamReader. Open the file, read the text from it and do the
search on the string. If you don't mind the search being line by line
(i.e. you're not searching for something which could contain line
breaks) you could read the file line by line so you never need to have
the whole file in memory. Use String.IndexOf to test whether or not the
string you're interested in is in another string.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.