Would you please take a look to the lines 22, 23, 24.
I must issue all those 3 instructions in order to be able to read the file again from its beginning. If I leave out any one of those three line the getline that follows (line 27) will not find anything because the file was completely read with line 9.
With those 3 lines everything works. But Why?
Why closing/opening/repositioning?
Am I doing something conceptually wrong?