title: Having issues using Streamreader to skip lines in C#
body: <p>I'm having issues reading in a file using <code>Streamreader</code> in <code>C#</code>, where the <strong>line breaks</strong> in the file I am reading in are also being read into my program and causing issues further on in the code.</p>
  
  <p>Below is an example of the file I am trying to read in.</p>
  
  <pre><code>Example,1,2,3
      &lt;--- // Trying to skip these lines.
      &lt;--- // Trying to skip these lines.
  // MY COMMENTS.
  </code></pre>
  
  <p>Below is the code I am currently using to check for the line breaks.</p>
  
  <pre><code>if (line.StartsWith("//") || 
      line.StartsWith("\r\n") || 
      line.StartsWith("\n") || 
      line.StartsWith("\r") || 
      line.StartsWith(" ") || 
      line.StartsWith(Environment.NewLine) || 
      line.StartsWith(Environment.NewLine) || 
      line.StartsWith($" {Environment.NewLine}")) {
  
      // SKIP THE LINE.
      break;
  }
  // ADD TO ARRAY
  </code></pre>
  
  <blockquote>
    <p>I have tried checking for <code>line.StartsWith("")</code> in the <code>if statement</code>,
    but this results in no values being added to my array.</p>
  </blockquote>
  
  <p>What needs to be changed for me to skip these lines?</p>