title: Reading a string line per line in C#
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1547476/easiest-way-to-split-a-string-on-newlines-in-net">Easiest way to split a string on newlines in .net?</a>  </p>
  </blockquote>
  
  
  
  <p>I'm trying to read out and interpret a string line per line. I took a look at the StringReader class, but I need to find out when I'm on the last line. Here's some pseudocode of what I'm trying to accomplish:</p>
  
  <pre><code>while (!stringReaderObject.atEndOfStream()) {
      interpret(stringReaderObject.readLine());
  }
  </code></pre>
  
  <p>Does somebody know how to do this?</p>
  
  <p>Thanks!</p>
  
  <p>Yvan</p>