Reading a string and integers
<p>What I want to do is read a line from text file which contains a two word string which has a length &lt;= 20 and two integers, for example it may look something like this:</p>

<pre><code>Name Surname 1 14
</code></pre>

<p>I know that if I read string, the string will be all characters until the white space, however getline() reads the whole line as a string. So how do I read a line like this ? Is there any easy way or I will have to use regular expressions ?</p>
