title: StreamReader not finding end of file
body: <p>I simply need to read lines from a text file and show them. When I run this I can see that id does what I want, but after it reads the last value it just shows a blank form on my screen and does not move on. It seems like it can't find the end of the file or something. I don't get an error.</p>
  
  <pre><code>Using sr As New System.IO.StreamReader(Application.StartupPath &amp; "\myfile.cfg")
      Dim Line As String = ""
      Dim i As Integer = 0
      Dim temp_array As Array
      Do While Line IsNot Nothing
           Line = sr.ReadLine
           temp_array = Line.Split("=")
          'MessageBox.Show(temp_array(0))
      Loop
  
  
  End Using
  </code></pre>