Read and write a list of timestamps from file.