Write to a specific CSV position

Hello, I have .CSV files, needs to change in my Corona app.
 

How it looks in Excel

[sharedmedia=core:attachments:7347]
How it looks in Corona

[sharedmedia=core:attachments:7348]

For example I need to write a value in F8 cell. What should I do for write to this cell using Corona?

Have you thought about doing it in SQLlite? CSV can be imported into a .db file and read/edited in Corona.

This program will not be for me, and that person only has .CSV files.SQLlite is only one solution?

Trying to edit a csv file with an excel mindset isnt gonna work well. The csv file doesnt have a F8 cell to edit. I suppose some smart logic and counting could do it but its an uphill battle.

Import to SQLite is much better but i suspect you want to use corona to edit that csv file, and thats a bit like the wrong tool for the job

Ok, how I can import my .CSV to .DB ?

WIll work this code in corona for import csv to db?

sqlite\> .mode csv sqlite\>.import c:/sqlite/mydb.csv dbs

You should read the corona documentation, its well written and understandable.

You could convert your CSV to JSON

Then to edit F8 it would be jsonTable[8][6] = "My new value"

But this would only modify the in memory copy of the table, you would need to persist the JSON to disk if you wanted a permanent edit

Have you thought about doing it in SQLlite? CSV can be imported into a .db file and read/edited in Corona.

This program will not be for me, and that person only has .CSV files.SQLlite is only one solution?

Trying to edit a csv file with an excel mindset isnt gonna work well. The csv file doesnt have a F8 cell to edit. I suppose some smart logic and counting could do it but its an uphill battle.

Import to SQLite is much better but i suspect you want to use corona to edit that csv file, and thats a bit like the wrong tool for the job

Ok, how I can import my .CSV to .DB ?

WIll work this code in corona for import csv to db?

sqlite\> .mode csv sqlite\>.import c:/sqlite/mydb.csv dbs

You should read the corona documentation, its well written and understandable.

You could convert your CSV to JSON

Then to edit F8 it would be jsonTable[8][6] = "My new value"

But this would only modify the in memory copy of the table, you would need to persist the JSON to disk if you wanted a permanent edit