How to include files in an iOS-App?

Ralph DiMola rdimola at evergreeninfo.net
Thu Mar 1 14:02:53 EST 2018


Martin,

1) Put the text file into the "Copy Files" pane of the standalone settings
2) When app start check is there is a copy in your "the documents folder/somepath" folder. If not then copy it from "the engine folder" to "the documents folder/somepath" folder.
3) Your app will access the file in the " the documents folder/somepath" folder and read/write at will.

"The engine folder" is where you find the files in the Copy Files pane and is read-only.
"The documents folder" is read/write.

Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net


-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of martin meili via use-livecode
Sent: Thursday, March 01, 2018 1:39 PM
To: use-livecode at lists.runrev.com
Cc: martin meili
Subject: How to include files in an iOS-App?

How can I include e.g. a textfile (let's say „MyText.txt“), when building the standalone application for iOS for the use from within the app (reading from/writing to)? 
I get my apps running on my iPad, I can read and write files, and  - if there is no „TheFiles“-folder -  I can create such a folder within the „documents-folder" by the help of the special-folderpath-function.
But how can I include such a folder  („TheFiles“{holding already existing different xy.txt files}) in my iOS-application (inside the documents-folder) when building the standalone, so that I can access these textfiles from within my iOS-Applcation?
Many thanks for you advising me.
Martin


_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the Use-livecode mailing list