I have a table view with many cells. If I swipe on any of them, a delete button appears, and if I press it the cell disappears, but when I reload the table, it reappears. the file which is loading from is a txt file of this kind:
row1, row2, row3, row4, row5...
How can I remove one of the row from the file, so remove for example row3…
…and have…
row1, row2, row4, row5...
Prints:
row1, row2, row4, row5This example code creates a string that looks like your text file, splits it into an array, removes one index, then combines the modified array back into a string.
Hopefully you will find some of this code useful (I gather you would already have some of it or something similar in use).