how to reset file pointer in c 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);