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.
将CSV文件的内容读入数据集。
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.)
对该数据集进行操作,就像它是一个mysql或mssql或bde数据库一样(运行查询。插入记录。删除记录.change记录。)
when the application closes - write the dataset back to the csv file.
应用程序关闭时 - 将数据集写回csv文件。
1 个解决方案
#1
You could load the file into a TClientDataset, operate on the dataset and apply the changes back to a file.
您可以将文件加载到TClientDataset中,对数据集进行操作并将更改应用回文件。
#1
You could load the file into a TClientDataset, operate on the dataset and apply the changes back to a file.
您可以将文件加载到TClientDataset中,对数据集进行操作并将更改应用回文件。