Difference between revisions of "(File):open"
m |
|||
Line 13: | Line 13: | ||
== See Also == | == See Also == | ||
* [[parent::File]] | * [[parent::File]] | ||
+ | * [[FileMode]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
{{#set:Description=Open the file for write, read or append.}} | {{#set:Description=Open the file for write, read or append.}} |
Revision as of 14:54, 22 March 2011
Open the file for write, read or append.
Function
Synopsis
ok = File:open( mode )
Arguments
FileMode mode
- The mode to open the file in.
Returns
boolean ok
- True on success, false otherwise.
Notes
If you are getting the error message "Could not set write directory", try setting the save directory. This is done either with love.filesystem.setIdentity or by setting the identity field in love.conf (only available with love 0.7 or higher).
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