delete last line of file