lovr.filesystem.append

Appends content to the end of a file.

bytes = lovr.filesystem.append(filename, content)

Arguments

NameTypeDescription
filenamestringThe file to append to.
contentstringA string to write to the end of the file.

Returns

NameTypeDescription
bytesnumberThe number of bytes actually written to the file.

Notes

If the file does not exist, it is created.

See also