Aks
Aks

Reputation: 5236

WPF, C# File Archiving

My 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?

Upvotes: 0

Views: 514

Answers (1)

Rune Andersen
Rune Andersen

Reputation: 1705

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

Upvotes: 1

Related Questions