jit sun

jit sun

  • NA
  • 42
  • 61.4k

Unzip a file

Feb 17 2012 5:04 AM
Hi,

I am trying to write the code for unzip. I got problem in coding.

here is my code:

private void button1_Click(object sender, EventArgs e)
  {
 
  DirectoryInfo ZipdirInfo = new DirectoryInfo(@"C:\testxml.zip");

foreach (FileInfo zipFilesInfo in ZipdirInfo.GetFiles("*.xml"))

{
  listBox1.Items.Add(zipFilesInfo);

}

  }

Thanks in advance



Answers (4)