lovr.filesystem.append

Edit

Appends content to the end of a file.

success, error = lovr.filesystem.append(filename, content)

Arguments

NameTypeDescription
filenamestring The file to append to.
contentstring | Blob A string or Blob to append to the file.

Returns

NameTypeDescription
successboolean Whether the operation was successful.
errorstring | nil The error message, or nil if there was no error.

Notes

If the file does not exist, it is created.

See also