Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 6136
  • Last Modified:

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
0
countrymeister
Asked:
countrymeister
1 Solution
 
jss1199Commented:
See these code samples at MSDN
0
 
Fernando SotoCommented:
Hi countrymeister;

.Net does support zipping and unzipping files.please see this web page for examples.

How to: Compress and Extract Files
0
 
käµfm³d 👽Commented:
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.
0
 
countrymeisterAuthor Commented:
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);

            }
0
 
käµfm³d 👽Commented:
DotNetZip has plenty of examples of usage.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now