Saving and loading files

Monkey Targets Forums/Android/Saving and loading files

Leon Brown(Posted 2012) [#1]
Is it possibly to save and load files with the Android target? From what I remember in the documentation for Monkey, the OS modules are only available for Windows and Mac - has this been updated since?


matty(Posted 2012) [#2]
LoadString?


golomp(Posted 2012) [#3]
To save file with Monkey you have 3 possibilities:
File/Save (or CTRL-S)
File/Save As and you have to specified the name
File/Save All

To load file use File/Open (CTRL-O)


Leon Brown(Posted 2012) [#4]
@matty - The documentation says that LoadString is part of the OS module and that the OS module is only available in the STCPP and GLFW targets. Not sure if the LoadString mentioned in the Mojo module is separate because in the description it says it's for the OS module. There is also no save string in Mojo.


therevills(Posted 2012) [#5]
@Leon, there are two LoadString commands one for OS and the other for Mojo.
The other commands for loading and saving are LoadState and SaveState...

http://blitz-wiki.appspot.com/Module_reference


jpoag(Posted 2012) [#6]
Diddy has a filesystem that works on top of the LoadState/SaveState.


matty(Posted 2012) [#7]
ahh yes sorry Leon - therevills is mentioning the commands I meant "loadstate/savestate" it has been a while since I've done any monkey programming and got them confused. They don't save outside your app's area in android but still useful for saving and loading data.