Difference between revisions of "File"
Line 8: | Line 8: | ||
== Functions == | == Functions == | ||
These functions have parentheses in odd places. This is because the ''File:'' namespace is reserved in Mediawiki. | These functions have parentheses in odd places. This is because the ''File:'' namespace is reserved in Mediawiki. | ||
− | {{#ask: [[Category:Functions]] [[parent::File | + | {{#ask: [[Category:Functions]] [[parent::File||Object]] [[Since::<071]] |
| headers=hide | | headers=hide | ||
| ?Description | | ?Description |
Revision as of 17:36, 25 March 2011
Represents a file on the filesystem.
Constructors
love.filesystem.newFile | Creates a new File object. |
Functions
These functions have parentheses in odd places. This is because the File: namespace is reserved in Mediawiki.
(File):close | Closes a File. |
(File):eof | If the end-of-file has been reached |
(File):getSize | Returns the file size. |
(File):lines | Iterate over all the lines in a file. |
(File):open | Open the file for write, read or append. |
(File):read | Read a number of bytes from a file |
(File):seek | Seek to a position in a file |
(File):tell | Returns the position in the file. |
(File):write | Write data to a file. |
Object:type | Gets the type of the object as a string. |
Object:typeOf | Checks whether an object is of a certain type. |
Enums
FileMode | The different modes you can open a File in. |
Supertypes
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info