4
Answers

Unzip a file

jit sun

jit sun

12y
2.3k
1
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)