title: Single line Readline()! = null in VB.NET
body: <blockquote>
    <p><strong>Possible Duplicate:</strong> <br/>
    <a href="https://stackoverflow.com/questions/1714234/while-in-vb-to-make-a-read-from-stream-reader">How do I read from a StreamReader with a while loop in Visual Basic?</a></p>
  </blockquote>
  
  
  
  <p>In C# I would loop a streamreader as shown below.</p>
  
  <pre><code>while ((line = reader.ReadLine()) != null)
  {
      list.Add(line); // Add to list.
      Console.WriteLine(line); // Write to console.
  }
  </code></pre>
  
  <p>What's the Equivalent in VB.NET?</p>
  
  <p>I tried</p>
  
  <pre><code>while ((line = reader.ReadLine()) IsNot Nothing)
  </code></pre>
  
  <p>But it is not working.</p>