What I want to do is read a line from text file which contains a two word string which has a length <= 20 and two integers, for example it may look something like this:
Name Surname 1 14
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 ?
Maybe…
Where text.txt: