title: reading a file word by word
body: <p>I can read from a file 1 character at a time, but how do i make it go just one word at a time? So, read until there is a space and take that as a string.</p>
  
  <p>This gets me the characters:</p>
  
  <pre><code>while (!fin.eof()){
    while (fin&gt;&gt; f ){
     F.push_back ( f );
    }
  </code></pre>