>>732
sscanf使うぐらいなら、fscanfだっけ?あれ使えば?

const char *format = "%d%*[^\n]";
fscanf( file, format, &a );
fscanf( file, format, &b );
fscanf( file, format, &c );