I have an app that creates files full of data however I would also like to delete files certain files once they are not required anymore, is this possible to do from the program?..
if ( FileExists ( "filename" ) )
DeleteFile ( "filename"
Just to avoid errors....
Also there there is
TDateTime fdt = FileDateToDateTime ( FileAge ( "filename" );
This would also give you date and time properties for the file you want to delete etc....
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.