C++ Get all bytes of a file in to a char array?
<p>Given:</p>

<pre><code>const string inputFile = "C:\MyFile.csv";
char buffer[10000];
</code></pre>

<p>How do I read the chars of the file in to the above buffer? I have been looking around online but none of the answers seem to work. They all wish to call getline().</p>