Look at this part of the code:


int number_ofnumbers=0;
char c;
fscanf(f,"%c", &c);
if (c=='\0')
...