Difference between revisions of "(File):open"

(Undo revision 4090 by Minicz (Talk) FileMode is not a parent of File:open())
m
Line 15: Line 15:
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Open the file for write, read or append.}}
 
{{#set:Description=Open the file for write, read or append.}}
 +
{{#set:Since=000}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|(File):open}}
 
{{i18n|(File):open}}

Revision as of 04:55, 20 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