lovr.filesystem.read

Edit

Read the contents of a file.

contents, error = lovr.filesystem.read(filename)

Arguments

NameTypeDescription
filenamestring The name of the file to read.

Returns

NameTypeDescription
contentsstring | nil The contents of the file, or nil if the file could not be read.
errorstring | nil The error message, if any.

See also