countrymeister
asked on
Unzip a zip file .NET framework 4.0
I need to unzip a zip file using .net framework 4.0.
Can I do this using .net classes , or use third party software
Any code samples would be helpful
Can I do this using .net classes , or use third party software
Any code samples would be helpful
See these code samples at MSDN
Hi countrymeister;
.Net does support zipping and unzipping files.please see this web page for examples.
How to: Compress and Extract Files
.Net does support zipping and unzipping files.please see this web page for examples.
How to: Compress and Extract Files
I wasn't aware that .NET had introduced classes for ZIP (e.g. .zip) files (thanks for that FernandoSoto!). In addition to the above, I have been using DotNetZip for a little while now, and it works very well. You can install it from NuGet.
ASKER
I am using .nET 4.0, I see the examples are for .net 4.5, also the .net 4.0 library
shows an example of unzipping .gz file. I need to unzip a .ZIP file
foreach (FileInfo fi in di.GetFiles("*.gz"))
{
Decompress(fi);
}
shows an example of unzipping .gz file. I need to unzip a .ZIP file
foreach (FileInfo fi in di.GetFiles("*.gz"))
{
Decompress(fi);
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.