title: reading and querying a txt/log file using c#
body: <p>i have created a log file example.txt that records events as</p>
  
  <pre><code>Button1 Click event happen ID=xyz DT:3/1/2015 9:27:32 AM
  Button2 Click event happen ID=xyz DT:3/1/2015 9:28:32 AM
  Button1 Click event happen ID=xyz DT:3/1/2015 9:29:32 AM
  Button2 Click event happen ID=xyz DT:3/1/2015 9:30:32 AM
  </code></pre>
  
  <p>i can read those file but i will get everything written in the log file.\
  i have used the following code </p>
  
  <pre><code>    try
      {
        using(FileStream fileStream = new FileStream("c://temp1/example_logfile.txt",FileMode.Open,FileAccess.Read,FileShare.ReadWrite))
         {
              using(StreamReader streamReader = new StreamReader(fileStream))
              {
                  this.txt.Text = streamReader.ReadToEnd();
              }
          }
       }
  </code></pre>
  
  <p>I want to read just the Button1 click event. how do you do that?  </p>