update txt file