file_append
lib callCapy
function file_append(path : string, content : string) bool function file_append(path : string, first : string, second : string) bool function file_append(path : string, first : string, second : string, third : string) bool
Description
file_append adds text to the end of a file. Use file_put_contents to replace a file.
Parameters
path : path of the file to update
content : text to append
first : first text value to append
second : second text value to append
third : third text value to append
Return Values
true when Capy appends the text. Otherwise, it returns false.
Example
Capy
file_unlink("/tmp/doc-append.txt")
file_append("/tmp/doc-append.txt", "a", "b", "c")
print(file_get_contents("/tmp/doc-append.txt"), "\n")