title: Stream from file with <fstream>
body: <p>How it's possible to read characters from file without loosing the spaces?<br />
  I have a file which contains for istance this:<br />
  <em>The quick brown fox jumps over the lazy dog.</em> <br />
  When I read from file (a character a time), I lose the spaces, but the all other characters are correctly read. Why? <br />
  This is an example of code:<br /></p>
  
  <pre><code>unsigned int cap = (unsigned)strlen("The quick brown fox jumps over the lazy dog.");
  char c[cap];
  int i = 0;
  while (!fIn.eof()) {
      fIn &gt;&gt; c[i];
      ++i;
  }
  
  for (int i = 0; i &lt; cap; i++)
      cout &lt;&lt; c[i];
  </code></pre>
  
  <p>When i print the array, all spaces are missing. Could you tell me how I can avoid this problem?</p>