Hello, how to remove a line from a CSV file from its number, (that is, type the number in a text box and then click a button)
Use the “index” number with the remove item from list block.
Can you give me the block please
you might want to try something yourself, see also tip 2 here https://puravidaapps.com/learn.php
and if you get stuck, then it would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.
read the csv file using the file component, convert it into a list using the list from csv table block and then use the remove item from list block together with the index, which will be entered in your textbox
following this description you now should be able to try something using blocks and if you get stuck, post a screenshot of your relevant blocks
it might be easier for you to store your data in a list of lists rather than using a file…
For data stored in csv, without update the whole csv, any syntax to enter into csv file, remove a row of data and insert a new row of data into the desire row?
you only can read or write a complete file…
you might want to keep your data in a list or list of lists and use TinyDB to store the list…
another solution is to use the local sqlite database…