lovr.filesystem.read

Read the contents of a file.

contents = lovr.filesystem.read(filename)

Arguments

NameTypeDescription
filenamestringThe name of the file to read.

Returns

NameTypeDescription
contentsstringThe contents of the file.

Notes

If the file does not exist or cannot be read, an error is thrown.

See also