in reply to Delete the last line of a file

I was thinking about doing the same thing. Work back thru a file
until you hit a newline.
Works good.
I guess the old saying is true:
There is no stopping an idea whose time has come.