Write new schedules to times.txt file