content inside zip file

前端 未结 2 2015
感动是毒
感动是毒 2020-12-10 08:08

how to find list of files inside zip file without unzipping it in c#.

2条回答
  •  隐瞒了意图╮
    2020-12-10 08:44

    There is a simple way to do this with sharpziplib :

            using (var zipFile = new ZipFile(@"C:\Test.zip"))
            {
                foreach (ZipEntry entry in zipFile)
                {
                    Console.WriteLine(entry.Name);
                }
            }
    

提交回复
热议问题