I'm trying to recycle some code for handling files on an SD card. The code was written back in the days before the various functions were grouped together in some easy to use libraries.
It seems that there used to a File.truncate(unsigned long pos) function that would truncate a file from the specified position forward.
The function doesn't seem to be available in the current libraries. Is there a simple work-around? has anyone got a function to achieve this?