Signature
void file_append(String file_name, ...val)
Parameters
file_name : file to append to, created if missing
...val : one or more values appended in order
return value : none
Appends one or more values to a file, creating it if needed. Each call takes an exclusive lock for the append, so concurrent appends are serialized and readers wait for them; you never manage locks yourself.
Example
file_unlink("/tmp/doc-append.txt");
file_append("/tmp/doc-append.txt", "a", "b", "c");
print(file_get_contents("/tmp/doc-append.txt"), "\n");
Output
abc