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 appended to the file.

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

Arguments

NameTypeDescription
filenamestringThe file to append to.
blobBlobA Blob containing data to append to the file.

Returns

NameTypeDescription
bytesnumberThe number of bytes actually appended to the file.

Notes

If the file does not exist, it is created.

See also