How to read from a file char by char in C++?
<p>I'm trying to read from a file, but the only thing I get on working is using getline().</p>

<p>The problem is that reading a whole line doesnt to the job for me.</p>

<p>My input file looks like this:</p>

<pre><code>abc 10 20
bbb 10        30
ddd 40 20
</code></pre>

<p>when the first word in each line should be saved as a string, and both number afterwards as ints.
The delimiter between the "words" in each line can be either a SPACE or a TAB.</p>

<p>So is the only solution is reading char by char? Or is there another solution?</p>
