I apologise in advance if this question isn't very specific.
Would it be possible to do the following.
when the application loads
read the contents of a CSV file into a dataset.
while the application is running
operate on that dataset exactly as if it were a mysql or mssql or bde database (run queries. insert records. delete records. alter records.)
when the application closes - write the dataset back to the csv file.