• 0

[C#] Some Reading Files help


Question

3 answers to this question

Recommended Posts

  • 0

I dont understand what you mean. If I knew how to use the expression correctly I wouldn't have had to post.

I am starting to think that this isn't even possible in .NET, kinda sad.

Link to comment
Share on other sites

  • 0

Do something like:

StreamReader reader = new StreamReader("PATH");
string text = reader.ReadToEnd();

if (text.IndexOf("Text To Find") != -1)
{
MessageBox.Show("Found the text!");
}

reader.Close();

:)

Dan

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.