I need to remove the last line of a text file. The last line is always the same, but the files could be very large so copying the file to a container and writing out all lines but the last is not an option.
Is there a quick way to do this? All of my other file code is using ofstreams, but I don't much care what objects I have to use to remove the line since it will be an action seperate from the rest of the file operations.