Opens the file read-only when setting the timestamp.