Read a number of bytes from a file.
contents, size = File:read( bytes )
number bytes (all)
string contents
number size
Available since LÖVE 11.0 |
This variant is not supported in earlier versions. |
Reads the contents of a file into either a string or a FileData object.
contents, size = File:read( container, bytes )
ContainerType container
number bytes (all)
value contents
number size