Write to csv file by defined index address

Hi friends,
with the following logic, I could read from a CSV file a variable by defined index address.
Now, I want to do the reverse action, I want to write to CSV file by defined index address.
Please Help me. I feel I am in misery :hugs: :hugs: :hugs: :hugs: :hugs:

God bless all of us.

Your issue will be that you are calling in your data from a csv in the assets, this file is read only, you cannot write changes to it. You therefore have to save changes to a database on the app, or to a different file on your device.

Attached an example that uses two listviews to allow the user to select an item in a sublist, edit it, then save the changes to a tinydb. The app will read from the tinydb tag if it is not empty, otherwise from the csv file in the assets.

readWriteCSV.aia (3.5 KB)

BLOCKS

I have not included a method to save out to a csv, but this can be added when you know where you want to save it to, if you do need to save to a file....