Fstream's tellg / seekg returning higher value than expected
<p>Why does this fail, it's supposed to be simple and work ? </p>

<pre><code>fisier.seekg(0, ios::end);
long lungime = fisier.tellg();
</code></pre>

<p>This returns a larger value than that of the file resulting in a wrong</p>

<pre><code>char *continut = new char[lungime];
</code></pre>

<p>Any idea what the problem could be ?</p>

<p>I also tried counting to the end of the file one char at a time, that rendered the same result, a higher number than expected. But upon using getline() to read one line at a time, it works, there are no extra spaces... </p>
