Hello everyone, I have a small script that loads data from a CSV file into a listbox, I wonder how do I replace a selected data by a new one that will be typed in EditText and saving the change in the CSV, I have a script that I add new text at the end of the CSV more need to edit existing data, does anyone have any idea how to do this?.

these data are loaded into a listbox, after I select one of the data eg test3 this information is loaded into a EditText after I change the edittext test3 to test003 and would like to push a button this test003 replace in same position getting