Process a file in c++
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/8782784/find-character-occurrences-in-a-file-c">Find character occurrences in a file c++</a>  </p>
</blockquote>



<p>How to count the characters in the file? I manage to open a given txt file and read from it but i don't know how to process the information in the file and find how many "a" for example are in the text file and the percentage of that letter in the file.</p>

<p>The content of the file is like:</p>

<p>ahdhdhmdbmjdbckbdkjbbkdbckjbdkbc<br>
dkjbckbjdvkjbdfkjbkjdkldli<br>
djbckjbdvkjbnfkjvbfvbjdjclkd  </p>
