Hi all.
Just wondered if there was any additional documentation / examples showing the use of the q_writeFile, q_readFile etc ECL utilities out there in the community. The doco shows example code, but doesn't give any detail about context, restrictions/limitations etc etc. For example its not clear if this feature is designed to write/read locally on the client (my initial assumption) or instead against the backend server (which is equally possible I guess). Should it work on both Android and iOS?
I've tried building an test app (using q_writeFile) and although it appears to run with no errors I can't see any resultant file, on either client or server...
If anybody has any additional info or examples... that would be brilliant.
Cheers for now.
Marcus.
Looking for q_writeFile q_readFile q_fileExists examples
-
MarcusLancaster
- Posts: 47
- Joined: Wed Nov 06, 2013 1:28 am
-
MarcusLancaster
- Posts: 47
- Joined: Wed Nov 06, 2013 1:28 am
Re: Looking for q_writeFile q_readFile q_fileExists examples
Hi all.
Just wanted to update you re this post. There are examples re the use of these features in the standard set of shipped examples. Download the server update package from here https://www.longrangemobile.com/upgrade.htm and then unzip locally to find the resources. The specific resource file which contains code examples for the q_writeFile, q_readFile etc etc script is LRECL_LocalFile.js - have a look in there and you can see how these utilities are used.
I built a quick test script where I was able to create a local text file on one button press, which I could then read back on another button press.
Anyway - hope that's useful.
Cheers all.
Marcus.
Just wanted to update you re this post. There are examples re the use of these features in the standard set of shipped examples. Download the server update package from here https://www.longrangemobile.com/upgrade.htm and then unzip locally to find the resources. The specific resource file which contains code examples for the q_writeFile, q_readFile etc etc script is LRECL_LocalFile.js - have a look in there and you can see how these utilities are used.
I built a quick test script where I was able to create a local text file on one button press, which I could then read back on another button press.
Anyway - hope that's useful.
Cheers all.
Marcus.