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