Language: Delphi 10.1 Berlin
Problem:
There is a directory with measurement files (*.csv
) and other files.
Every few hours a new measurement file will be created.
I need a possibility to delete all .csv
files in that folder that are older than a specific number of days. All other file types should not be touched.
Question:
Is there any built-in function in Delphi to do that job? If not, what is an efficient way to solve this problem?