Updating the contents of the text file.