(File):open

(File):open

Open the file for write, read or append.

Function

Synopsis

ok, err = File:open( mode )

Arguments

FileMode mode
The mode to open the file in.

Returns

boolean ok
True on success, false otherwise.
string err
The error string if an error occurred.

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


doc_love
2017-03-21 15:40:29
Comments
Leave a Comment

Please login to continue.