That while statement on line 13 is incorrect because eof() doesn't work like that. Instead, code it something like this
string line;
while(getline(infile, line) )
{
// now split this string into individual parts for the structure
}
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.