title: Reading only first integer from whole line in text file
body: <p>If have text file like this: </p>
  
  <pre><code>3       size of group
  10     individual therapy time(min)
  15     group therapy time(min)
  25      new client probability percentage
  500     individual therapy cost
  300     group therapy cost
  </code></pre>
  
  <p>is there a way to just read first integer of text line and jump to other line? </p>
  
  <p>What I have tried:</p>
  
  <pre><code>settingsFile &gt;&gt; groupSize &gt;&gt; trash &gt;&gt; trash &gt;&gt; trash;
  settingsFile &gt;&gt; indTime &gt;&gt; trash &gt;&gt; trash &gt;&gt; trash;
  settingsFile &gt;&gt; newClientProb &gt;&gt; trash &gt;&gt; trash &gt;&gt; trash &gt;&gt; trash;
  settingsFile &gt;&gt; indTherapyCost &gt;&gt; trash &gt;&gt; trash &gt;&gt; trash;
  settingsFile &gt;&gt; groupTherapyCost &gt;&gt; trash &gt;&gt; trash &gt;&gt; trash;
  </code></pre>
  
  <p>And in my opinion, this is not a good way to read the text file, because if I delete one <code>trash</code> string from text file, the whole reading will fail.</p>