How to store some data in my stack
吉野 孝
yoshino at sys.wakayama-u.ac.jp
Wed Jan 25 10:19:26 EST 2012
Hi,
I use LiveCode 5.0.2 for Android devices.
I would like to store some data in my stack.
But I don't know how to store some data in my stack on an android device.
At first, I used a field. But the field data is gone at the next launches.
Next, I tried to use file.
The following are the test scripts.
This is the 'write file' script.
on mouseUp
put specialFolderPath(“documents”) & ":" & “testFile.txt” into fileName
open file fileName
write fld "Data" to file fileName
put the result
close file fileName
end mouseUp
This is the 'read file' script
on mouseUp
put specialFolderPath(“documents”) & ":" & “testFile.txt” into fileName
open file fileName
read from file fileName until EOF
put it into fld "Data"
close file fileName
end mouseUp
The scripts work on my Mac.
But they does not work on an Android device.
I need your help.
_.__ ._ _. ._ ._.__ .. ._._. _._ . ..__ ._.__ ._._. ___. .._ __.. __ .._
Takashi Yoshino
http://www.wakayama-u.ac.jp/~yoshino/lab/
Tel: +81-73-457-8441
More information about the use-livecode
mailing list