ZipArchive for MonoTouch

Compressing files in MonoTouch just got easier!

ZipArchive is taken from the Obj-C world. And it is by far one of the simplest, most elegant solutions I’ve seen for compressing files to an archive. Just open an archive, add files to compress and close it.

var zipFile = new LibZipArchive.ZipArchive();
zipFile.AddFile("/path/of/file/to/somefile.txt", "somefile.txt");
// add more files as needed

The Obj-C library and bindings to C# can be found in the open source project monotouch-ziparchive on github.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: