Why operations connected with changing pointer position in file needs to do one of those:
- read value (i.e.
fread()
) - flush stream (i.e.
fseek()
)
For example: I know that next 10 bytes are unnecessary offset and I can simply skip them, so why I need to reset position indicator or read those 10 bytes and ignore them. I would want just move pointer those 10 bytes forward without any side effects. What is the reason behind it?