update text file