Posts|Comments

Tag Archives: archive

SharpZipLib Decompression

Very often I require to perform (de)compression of archives programmatically. I use SharpZipLib for this purpose. After fiddling with several algorithms I found this simple piece of code that performs an elegant task of quick decompression of a zip archive.
internal void Decompress(string fileName,string extractPath)
{
FastZip fZip = new FastZip();
fZip.ExtractZip(fileName, extractPath, “”);
}
Link: http://dotnet.org.za/thea/archive/2006/01/17/Unzip-files-programmatically-in-C_2300_-_2D00_-_2300_ZipLib.aspx