I have a huge set of files, to all of which there is (should be) a sentinel character (1 byte) appended to the end of file. How can I read the very last byte (to ensure it is the character) and truncate it to size (ie: remove the character)?
I know I could read the whole thing, and write it all back minus the last character, but there's got to be a way to get to a specific byte, isn't there?