My console application program is creating some runtime files while it is working so what I want to do is delete all of these files on the application startup. I have tried
I got this error and found that it was because my test files were readonly. Changed this and I can now use fileinfo to delete them no worries.