Update a local txt file