I need to be able to read and write to a local delimited text file. When read, I will need to parse the line. That looks easy enough. But I can't seem to get started. Could someone explain how to use getitem? Is this what is used to read data from a file? Or is this even what I'm looking for? Or is it still under development? How does setitem work?

Sorry. I'm lost. Just a little push in the right direction is all I need.

And by the way: Happy Independance Day to all the Americans out there!

Wrangler--------------"You never know about a woman. Whether she'll laugh, cry or go for a gun." - Louis L'Amour

Reading local files is more complicated with web/mobile apps than with Windows. There will be actions added to NeoAppBuilder to assist with this, but for now you can do it with JavaScript for web apps or PhoneGap for mobile apps.

For now (or even later) forget trying to read/write local files ... even if/when you can use Phonegap, you run into the issue of testing Phonegap assisted functionality on your Design/Development platform.

For what you want to accomplish, try the "Local Storage" facilities ... yes, SetItem and GetItem are what i am talking about ... try this in Button1's click section ...

I have been doing some testing with reading both files and previously created and working SQLite databases directly from local device storage and it does have some limitations and quirks depending on what you wish to do plus getting the JS code examples found on various forums to actually work is very hit and miss. But if you do go down that route and suss it out, please post a working example as it would be usful for us all.

Like Gaev mentioned, there is the NeoAppBuilder Local Storage Set/GetItem action and this will work with locally stored text but only if as explained you first of all create what you wish to store locally within the app, then using SetItem it will create a local file for you, it adds it to the local private sql db that, on Andriod as an example, can only be accessed by that app. You can actually see what gets created by running a test app in Chrome, pressing F12 to see the DeBugger and expanding LocalStorage in Resourses, then the file name plus the text content you created with SetItem are all shown as listed. These files can of course then be loaded into the app again as and when needed with GetItem.

Reading text files in direct from the web works well as an alternative but does need an internet connection but I did find this useful to use to get me started so something did actually work as I was expecting it to for something created outside the app with lots of data that I needed to be able to use within the app and I could then actually display all or some of the text on screen a needed.

Here is a sample that should work or do something similar to what you may be wanting to try out for loading in a text file with multiple lines. This enables NeoAppBuilder to read in each line from a text file saved on an ftp site or the internet and then place each line into a NeoAppBuilder array named [TestArray] by using JS for use within the app.

I have been testing a combination of the both, by reading in the file from the internet and then using SetItem to store it locally for offline use, so in the example I would not need to split [TestVar] when loaded, as I could do that later once I had stored it locally.

Thank you, all! Now I've got something to play with. I found that the first rule to adhere to is that variables are case sensitive. So for other newbies out there, before you spend hours trying to figure why your results don't display, that could very well be the reason.

Hmmmm. I notice that when making a change in the file on my server that is read, it isn't reflected when I rerun the app. I just removed the header line in the csv. Is there a cache that needs to be cleared between sessions?

UPDATE: I guess it's a neoappbuilder thing. After closing neoappbuilder down and restarting, it displayed the updated file correctly.

Wrangler--------------"You never know about a woman. Whether she'll laugh, cry or go for a gun." - Louis L'Amour