in reply to Re^3: Append to text file not working
in thread Append to text file not working

I'm sure that you meant to specify that your writes are atomic, when writing to files that were opened for append.

I prefer that posts in public forums err towards the pedantic side. :)

-Colin.

Replies are listed 'Best First'.
Re^5: Append to text file not working
by tilly (Archbishop) on Feb 22, 2008 at 03:06 UTC
    If you want to get pedantic, the actual writes to the filesystem (in memory at least) are atomic in either case. However if you have not set append (or, reading some C documentation, if you're unlucky enough to be using NTFS) it is the case that one process could write to a location in the file that another process has already overwritten, thereby overwriting what the other process wrote.

    So technically the writes are atomic, but the end result could still disappoint. :-)