Update temp.txt file