Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (13 sloc) 560 Bytes
SYNOPSIS
int write_file(string file, string str)
int write_file(string file, string str, int flags)
DESCRIPTION
Append the string <str> to the file <file>. Returns 1 for success
and 0 if any failure occurred.
If <flags> is 1, the file is removed first; thus making the
'append' effectively an 'overwrite'. Default for <flags> is 0.
HISTORY
LDMud 3.3.523 added the <flags> parameter.
SEE ALSO
file_size(E), write_bytes(E), write_file(E), read_file(E),
read_bytes(E), rm(E), get_dir(E)