lovr.filesystem.write

Write to a file.

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

Arguments

NameTypeDescription
filenamestringThe file to write to.
contentstringA string to write to the file.

Returns

NameTypeDescription
bytesnumberThe number of bytes written.

Notes

If the file does not exist, it is created.

See also