Find a certain string within a text file in VB .NET?

What is the quickest way to find if a certain string exists in a text file in VB .NET? I’ve tried storing the entire text file in a string using .ReadToEnd and searching the string for any instance of the word I’m looking for, but this takes forever if the text file is hundreds of pages long. Is there an easier way to do this?

This entry was posted in Uncategorized and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>