diff --git a/reference/filesystem/functions/fwrite.xml b/reference/filesystem/functions/fwrite.xml index c85ab26f18..5863b8437c 100644 --- a/reference/filesystem/functions/fwrite.xml +++ b/reference/filesystem/functions/fwrite.xml @@ -1,5 +1,5 @@ - + @@ -41,6 +41,17 @@ fopen mode parameter. + + + If handle was fopened in + append mode, fwrites are atomic (unless the size of + string exceeds the filesystem's block size, on some + platforms, and as long as the file is on a local filesystem). That is, + there is no need to flock a resource before calling + fwrite; all of the data will be written without + interruption. + + A simple <function>fwrite</function> example