how to find list of files inside zip file without unzipping it in c#.
With sharpziplib:
ZipInputStream zip = new ZipInputStream(File.OpenRead(path));
ZipEntry item;
while ((item = zip.GetNextEntry()) != null)
{
Console.WriteLine(item.Name);
}
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);
}
}