after line 86 you need to actually read a line from the file -- you can't just simply ignore it.
string line;
for(i = 0; i < 6; ++i)
{
getline(infile,line);
if( i > 1)
{
// convert to number, you can use stringstream class to do that.
}
}