by ALittleLight · 7y ago · 0 comments
Edit: then delete the last ten bytes.
There is no function provided for shifting the byte offset of data in a file.
You can write an entirely new file, of course, but the question has an implicit goal of doing this efficiently.