I want to set a cache limit for my c# program. My program is creating files periodically and saving them to a folder. I want it so if the folder hits this limit (i.e. 1GB) it will automatically start deleting the files starting with the oldest ones deleting only a certain amount at a time (i.e. 500MB).
How do I do this? I'm using Visual Studio Community 2015.
Thanks!
How do I do this? I'm using Visual Studio Community 2015.
Thanks!