append a line to txt file