lovr.filesystem.append

Appends content to the end of the 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 written.

Notes

If the file does not exist, it is created.

See also