Is it possible to remove N bytes from the end of a binary in C ++ using fstream (or something similar)? I don’t want to read the whole file, cut it out and write it again, but since it is at the end of the file, it seems like this should not be such a problem.
Thanks for any advice.
source
share