Question: how does fseek function work?
Answer: fseek() function is use to change file position. ... SEEK_SET The new file position will be the beginning of the file plus offset (in bytes). SEEK_CUR The new file position will be the current position plus offset (in bytes). SEEK_END The new file position will be the end of the file plus offset (in bytes).