Text file containing empty spaces in c++!
<p>I have a problem with reading a txt file of the following form:</p>

<pre><code>    1 2 3 4 5 6 7 8 9 10
 1    f f   f   f f  
 2  f     f f   f f f
 3  f f   f   f f
 4  f f   f       f f 
 5      f   f f     f
</code></pre>

<p>where: (1,2,3,,,,,) are indeces, f's are data of type double.<br>
I have tried to read the contents using matrix notation i.e. tab[i][j]; i've succeeded to do it when my file doesn't contain empty, but when it does have emty spaces as shown above, data is displayed randomly and i don't understand anything of it.</p>

<p>So, can anyone enlighten me please??</p>

<p>thanks in advance.</p>
