I am trying to read numbers from a file using getline.My main aim is to read the first number and store the number zombies struct as the number of zombies .The second and third stores the health and distance respectively.
if the file has 2 4 5 7 6
then there a 2 zombies, the first has a health of 4 and distance of 5.the secong a health of 7 and a distance of 6.
maybe try while( !inFile.eof() ) instead of yours because you never actually set end to be true or false and then you are saying when it is false then to do the loop. and never actually set it equal to true at the end.