4
Answers

Unzip a file

jit sun

jit sun

13y
2.7k
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)