I was thinking that I could use something like

Code:
while( fscanf(fin," %s ", temp_name) != "Class Size" ) {
But, wouldn't the string that it reads in be
Code:
class size 3
which is != to class size... so it would keep going.