Skip to main content

write_file

Discworld driver help

write_file

Name

write_file() - appends or writes a string to a file

Synopsis

int write_file( string file, string str, int flag );

Description

Append the string `str' into the file `file'. Returns 0 or 1 for failure or success. If `flag' is 1, write_file() overwrites instead of appending.

See also

read_file(), write_buffer(), file_size()