Updating text files