W3cubDocs

/LÖVE

(File):read

Read a number of bytes from a file

Function

Synopsis

contents, size = File:read( bytes )

Arguments

number bytes (all)
The number of bytes to read

Returns

string contents
The contents of the read bytes
number size
How many bytes have been read

See Also


© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/(File):read