I've been reading a lot of stuff about saving a txt file to the SD card and whatnot, but I'm not quite sure how to save to my phone memory since I don't have an SD card in my phone.
put the cVariable of this stack into url("file:" & specialFolderPath("mnt/sdcard") & "/filename.txt")
but I whenever I run this, a file is never created in this directory, or any other directory I try. I chose mnt/sdcard because it seemed to be the default folder in my phone. Anyone have any suggestions that I can try?
SpecialFolderPath gives access to certain specific system folders as listed in the dictionary. The location you want to write to isn't in that list, so you can't use specialFolderPath. Just use the file path by itself:
put the cVariable of this stack into url ("file:/mnt/sdcard/filename.txt")
I'm not positive that's the right path exactly but it's the right idea.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
Hm, thanks for the posts guys but neither of these seemed to have solved my problem. Still can't get any txt files to write to my memory. I'm going to keep playing with it and report back if I make any progress.
Are you sure that answer folder works on mobile devices?
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode