Sort of like Get/delete last character of file without loading into memory but in java.
I'm working on a json parser in java where the file would always end in }
, but in order to write more information into the json file, it must be removed.
The only ways I know of doing this either involves loading the entire file in memory or transferring all the data to a temporary file just to get rid of a single character, which would be impractical when working with very large files.