add a line to a text file