4 ms·
Writing to files in general is a fairly difficult thing if you care about not losing any data under any circumstances, because you have to use the right syscall
by mschwaig 10y ago
Writing to files in general is a fairly difficult thing if you care about not losing any data under any circumstances, because you have to use the right syscalls for the semantics of your filesystem, which may somtimes be why you're looking at corrupted files in the first place.
Correctly implemented transactions can prevent you from dealing with that. Maybe that's worth giving up easily readable, searchabe and processable textfiles, maybe not.