title: Blank lines when reading multiple text files
body: <p>I have a small section of code that reads all the text files in a directory and writes them to the console.  This works fine, except sometimes It writes a blank line.</p>
  
  <p>Below is my code:</p>
  
  <pre><code>Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
  For Each xFile In Directory.GetFiles("C:\Test1", "*.txt", False)
              Using r As StreamReader = New StreamReader(xFile)
                  While r.Peek() &gt;= 0
                      line = r.ReadLine
                      Console.WriteLine(line)
                  End While
              End Using
          Next
  
  End Sub
  </code></pre>
  
  <p>Below is a sample of the output:</p>
  
  <pre><code>Line1
  Line2
  Line3
  
  Line4
  Line5
  Line6
  </code></pre>
  
  <p>There is not any pattern to the line space, and it happens in the middle of files, not at the end.  </p>
  
  <p>1) Why are there random blank lines
  2) How can I get them to stop showing up?</p>