restart fssek c code example Example 1: reset the reading position to beginning in c rewind(fptr); Example 2: reset the reading position to beginning in c fseek(fptr, 0, SEEK_SET);