title: how to count number of characters in a file in C#?
body: <p>I tried</p>
  <pre><code>    string str1 = File.ReadAllText(&quot;D:\\this.txt&quot;);
      str1.Length;
      byte[] fileBytes = File.ReadAllBytes(&quot;D:\\this.txt&quot;);
      fileBytes.Length;
  </code></pre>
  <p>gone thru <a href="https://stackoverflow.com/questions/8214772/counting-number-of-characters-in-a-file-c-sharp">similar question</a>
  but each time same problem arises, it counts carriage return and new line also
  like in my file data is</p>
  <pre><code>123
  456
  7 
  </code></pre>
  <p>it is showing '11' but output should be '7'
  help needed
  EDIT:  i want to count every element which have ASCII greater than or equal to 32</p>