On 09/18/2016 10:05 PM, Brad Roberts via Digitalmars-d wrote:
This is nice in the case of no changes, but problematic in the case of
some changes. The standard write new, rename technique never has either
file in a half-right state. The file is atomically either old or new
and nothing in between. This can be critical.
Good point, should be also part of the doco or a flag with update (e.g.
Yes.atomic). Alternative: the caller may wish to rename the file prior
to the operation and then rename it back after the operation. -- Andrei