#include void main() { FILE *scores; int s; scores=fopen("scores.dat","r"); if(scores==NULL) { puts("Error opening file"); } else { fscanf(scores,"%i",&s); fclose(scores); printf("The high score is %i\n",s); } }