WPF, C# File Archiving
My开发者_如何学Python WPF Application creates several files with each instance of its use. These files can be reused. As the user continues to use it, I want to ensure that the files get archived over time and the user doesn't find the folder with hundreds of files after a while. What can I do for this?
By archiving - do you mean that you want to compress the files to a zip file or similiar?
If that is the case - you could use Sharp Zip Lib.
see:
http://dotnet-snippets.com/dns/c-using-sharp-zip-lib-to-compress-files-SID586.aspx
With that it should be straight forward to compress your older files to an archivedfiles.zip
精彩评论