[Solved] fsetpos does not set the file pointer’s position as expected [closed]


Your 2nd fgetpos is probably a typo for fsetpos. That would explain the behaviour you comment on:

pos2 is replaced now with a new value let us say 18.

update after your edit: now both calls are fsetpos???. You need to get the position somewhere, and then go back to it with set later.

7

solved fsetpos does not set the file pointer’s position as expected [closed]