updating content in a txt file