c go a the biginning of the file code example
Example 1: how to reset to read from beginning of file c
fseek(fptr, 0, SEEK_SET);
Example 2: how to reset to read from beginning of file c
rewind(fptr);
fseek(fptr, 0, SEEK_SET);
rewind(fptr);