save value and time in file .txt