how to take cursor of file to start 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);