Difference between revisions of "X File"
From GiderosMobile
(Created page with "__NOTOC__ '''Supported platforms:''' <br/> '''Available since:''' Gideros 2011.6<br/> === Description === file object is usually returned by `io.open` used to manipulate (read...") |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Supported platforms:''' <br/> | + | '''Supported platforms:''' android, ios, mac, pc<br/> |
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
=== Description === | === Description === | ||
− | file object is usually returned by `io.open` used to manipulate (read and write) files in lua{|- | + | file object is usually returned by `io.open` used to manipulate (read and write) files in lua |
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | {|- | ||
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Methods === | === Methods === | ||
+ | [[file:close]] - closes file<br/> | ||
+ | [[file:flush]] - saves any written data to file<br/> | ||
+ | [[file:lines]] - returns iterator function to return lines, nil ends<br/> | ||
+ | [[file:read]] - reads file according to given formats, returns read values or nil<br/> | ||
+ | [[file:seek]] - sets file pos, whence="set"|"cur"|"end", defaults "curr",0, returns file pos<br/> | ||
+ | [[file:write]] - writes strings or numbers to file<br/> | ||
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Events === | === Events === | ||
=== Constants === | === Constants === | ||
|} | |} |
Revision as of 08:57, 23 August 2018
Supported platforms: android, ios, mac, pc
Available since: Gideros 2011.6
Description
file object is usually returned by `io.open` used to manipulate (read and write) files in lua
MethodsFile:Close - closes file |
EventsConstants |