Remove line feed from end of text file