How would I go about storing data locally onto an iOS device so that it is always there even when someone closes and reopens the app?
Thanks
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
on writeTextFile fileTowrite,dataTowrite
set the defaultFolder to specialFolderPath("Documents")
put dataTowrite into URL (("file:"&fileTowrite&".txt"))
end writeTextFileCode: Select all
writeTextFile "preferences","1,0,3,4,5"Tomjr wrote:Thanks! And how would I read that data?
Code: Select all
function readFromFile whatFile
set the defaultFolder to specialFolderPath("Documents")
return URL (("file:"&whatFile&".txt"))
end readFromFile Code: Select all
put readFromFile("preferences") into field "PreferencesField"Use the "Library" folder ... he is backuped but is not accessible via iTunes Document SharingFireWorx wrote: ...
SO... The question is. Are there other IOS folders that allow the contents to be changed via script but are not subject to file sharing if it is turned on in the standalone settings?
...