How can i write a program to delete certain files that start with tmp with in a folder that are modified between certain dates and i can adjust the dates manually.
I'm not exactly sure what your asking. Do you want specific functions for file IO or help with being able to open/edit/delete said files through the IO functions? General questions get a general answer, so be more specific.
You need CFileFind class to write a function that will begin looking for tmp files in whatever folder you specify.
To check when dates have been modified, use CFile::GetStatus.
To change the dates, use CFile::SetStatus.
For more info on these classes and members, look them up in the MSDN help menu.
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.