Read a number of bytes from a file.
contents, size = File:read( bytes )
number bytes (all) 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 containernumber bytes (all)value contentsnumber size
© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/(File):read