Hi,
I'm using ifstream to read data from a txt-file but the last line is always read twice. How Come?
The condition for the loop in which the file is read is
while(!infile.e of())
so this seems strange to me. Does anyone have a suggestion how to solve this problem?
I'm using ifstream to read data from a txt-file but the last line is always read twice. How Come?
The condition for the loop in which the file is read is
while(!infile.e of())
so this seems strange to me. Does anyone have a suggestion how to solve this problem?
Comment