title: ifstream's operator>> to detect end of line?
body: <p>I have an irregular list where the data look like this:</p>
  
  <pre><code>[Number] [Number]
  [Number] [Number] [Number] 
  [Number] [Number] [Number] 
  [Number] [Number] [Number] 
  [Number] [Number] [Number] 
  [...]
  </code></pre>
  
  <p>Notice that some lines have 2 numbers, some have 3 numbers. 
  Currently I have my input code look like these </p>
  
  <pre><code>inputFile &gt;&gt; a &gt;&gt; b &gt;&gt; c;
  </code></pre>
  
  <p>However, I want to it ignore lines with only 2 numbers, is there a simple work around for this? (preferably without using string manipulations and conversions)</p>
  
  <p>Thanks</p>