$ ./guess_the_languageProgramming Languages
Programming Languages · medium · #538

Which programming language is this?

FILE *fp = fopen("scores.txt", "r");
int score, total = 0;
while (fscanf(fp, "%d", &score) == 1)
    total += score;
fclose(fp);

Answer: C

A FILE * handle read with fscanf and closed with fclose is C stdio file handling.
Play Programming Languages ▸