also you could use the getline cmd. be sure to use the cin.ignore(25, '\n') between the cin.
with your ifstream (i believe srry really tired here), lets say infile, use the getline with the tab delimiter to get the info, followed by a cin.ignore, then infile>> to get the int. getline only works for strings so be careful;
basic code
getline(infile, stringVARIABLEname, delimiter);
cin.ignore(intOFhowMANYcharsTOignore, delimiter);
infile >> variable //will stop at next space
getline(infile, stringVARIABLEname, delimiter);
...
...
..
the cin.ignore or it might be infile.ignore since your not using cin. (again sorry but don't have access to my compiler to check it out right now)
might be after the infile>>variable and before the getline or just how it is now.
the delimiter for the getlines will be a sigle char that separates your data \t( '\t' ) in your case
and for the cin/infile.ignore will just be a \n ( '\n' ).
hope this helps