lovr.filesystem.append

Appends content to the end of a file.


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

Arguments

NameTypeDescription
filenamestring The file to append to.
contentstring A string to write to the end of the file.

Returns

NameTypeDescription
bytesnumber The number of bytes actually appended to the file.

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

Arguments

NameTypeDescription
filenamestring The file to append to.
blobBlob A Blob containing data to append to the file.

Returns

NameTypeDescription
bytesnumber The number of bytes actually appended to the file.

Notes

If the file does not exist, it is created.

See also