title: Loop through the lines of a text file in VB.NET
body: <p>I have a text file with some lines of text in it.</p>
  
  <p>I want to loop through each line until an item that I want is found*, then display it on the screen, in the form of a label.</p>
  
  <p>*I am searching for the item through a textbox.</p>
  
  <p>That is, in sudo:</p>
  
  <pre><code>For i = 0 To number of lines in text file
      If txtsearch.text = row(i).text Then
          lbl1.text = row(i).text
  Next i
  </code></pre>