Page 1 of 1

Accessing files included in standalone settings

Posted: Thu Oct 11, 2012 12:48 am
by cusingerBUSCw5N
OK...I'm being dumb again. :?

I want to include a file in my app app_test.txt standalone.

When I try to access it on an android:

put url ("file:" & specialFolderPath("engine") & slash & "app_test.txt") into tFileContents
answer tFileContents

It gives me "no files"

So...where is it storing app_test.txt?

Thank you

Re: Accessing files included in standalone settings

Posted: Thu Oct 11, 2012 1:15 am
by cusingerBUSCw5N
ok... I was stupid.

You access it this way:

put url ("file:" & specialFolderPath("documents") & slash & "app_test.txt") into tFileContents
answer tFileContents

Re: Accessing files included in standalone settings

Posted: Sat Oct 13, 2012 12:58 pm
by Klaus
Sure?

Everything you add via the "Add files" folder in the standalone builder will DEFINITIVELY be in:
specialfolderpath("engine")

specialfoderpath("documents") is a folder on the actual device and NOTHING is being copied
to that folder automatically by Livecode/your app!

P.S.
Are you sure this is not a leftover from an earlier version of your app?

Re: Accessing files included in standalone settings

Posted: Tue Oct 16, 2012 3:25 pm
by cusingerBUSCw5N
thank you. Yes, I have so many prior versions...

Re: Accessing files included in standalone settings

Posted: Tue Oct 16, 2012 3:30 pm
by Klaus
Do some cleaning up :)