title: New line character in c#
body: <p>I wrote this code to count the number of characters in a text file :</p>
  
  <pre><code>sr.BaseStream.Position = 0;
  sr.DiscardBufferedData();
  int Ccount = 0;
  while (sr.Peek() != -1)
  {
    sr.Read();
    Ccount++;
  }
  </code></pre>
  
  <p>but after applying this code to a file contains :</p>
  
  <pre><code>1
  2
  3
  4
  5
  6
  7
  8
  9
  0
  </code></pre>
  
  <p>Ccount = 30 ????
  why?
  I am using Windows Xp on virtual box on my Macbook 
  the program used : Microsoft Visual Basic 2010.</p>