Update text file