lovr.filesystem.append

Edit

Appends content to the end of a file.



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.

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