How to delete the last char of .txt from SD

good to know. it is because FILE_WRITE has O_APPEND and that seeks to the end on open