title: How do I output a certain line in VB once I have found a string?
body: <p>What I am trying to do is, find the word "date" in a text file. I have this part working. What I want to do after is to output the entire line that the word "date" was found on.
  Any ideas how to this?</p>
  
  <pre><code>Heres the code I have so far?
  
  
  
  Dim Findline As String = IO.File.ReadAllText("....\resources\" + ShowsCmb.Text + "-desc.txt") 
  Dim Dates As String = "date"
  
  If Findline.Contains(Dates) Then 
  
  'Output the line once the word date has been found &lt;&lt;&lt;Here's where the problem is.
  Dates.Readline()Dim Dates As String = "date"
  </code></pre>