But isn't that hard to get right? At least if you using something like sqlite you get consistency guarantees.
Consider your process writing to the file and dying during write() - do you recover and repair the file after you reschedule?
Consider your process writing to the file and dying during write() - do you recover and repair the file after you reschedule?