Hi,
- the answers provided here could be used on Gidero's FAQ if it proves to be useful -I would like to know more about saving and loading files on device.
I am using this Load/Save system provided by
@atilim :
on GitHubI have a few questions regarding temporary and permanent storage.
- When I am developing on my Mac, where are those files stored?
- When I am developing on Windows, where are those files stored?
- When are those files deleted when I develop in the simulator? (Ex : I use my app in the simulator on my Mac -not on device-, achievements are saved, but when I open it later achievements were deleted)
- How to be sure that files are stored on device?
- How to access and delete those files on device? (Useful after doing many tests)
- How can I get a list of all the files that I can have access to? (like a finder/explorer)
I couldn't understand how the file system works and I believe it can become helpful to centralize those informations.
Thank you for your help.
Comments
http://www.giderosmobile.com/forum/discussion/136/save-files#Item_5
About temporary files I think they are guaranteed to work for one session, meaning till you close the app.
Thank you.
The forum (and discussions) are really not the best place to find informations, a proper FAQ would be far better especially for such a tricky and important topic.
I just made the switch to mac recently, what does $TMPDIR stand for in :
$TMPDIR/gideros/[YOUR APP NAME]
on mac
1. Open terminal app
2. type $TMPDIR and copy the path
3. from finder's menu choose Go>Go to Folder and paste the path
4. voila~
Yes this kind of thing should be on faq, or in gideros IDE we have a menu to open this folder
Likes: ar2rsawseen, hgvyas123
http://www.nightspade.com
Likes: hgvyas123, Nascode
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
http://www.nightspade.com
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps