I am surprised to say that I have not found a reasonable solution on how to resize a file using C++ standard libraries. It seems completely stupid and wasteful to have to read in the data from the original file, and then write it into a different file. I simply want a resize method that will chop off the data that goes beyond that size... Is there anything that does this?
EDIT: If I do have to use the method I explained above, how large should my buffer be that I'm using to read/write? I obviously can't read the whole file in at once, because I am working with rather large files here.