Manage files by basic

Hello,

If I want to delete/update a line from a csv file shall I read the hole of the file and detect the line to deleted/updated and use a temporary file to copy the rest of data or there is an other solution?

Thanks and Regards.

Hello @Raoua,

A temporary file might be the easiest option. Here is are some examples where a CSV is updated. You might be able to use modify the find and replace function to remove a line. https://techforum.ewon.biz/thread-597.html

Deryck

Hello @deryck

is there any fuction to remove a text file in basic ?

Thanks

Hi @Raoua,

You can use the ERASE call to delete files from the user directory with:
ERASE "/usr/myfile.shtm"

See section 3.24 of the programming reference guide.

Deryck