rbuckwildrh
New Member
I want to read a file from a zip folder in Asp.net 2.0 using C# . actually i want something like this :\[code\]using (ZipFile zip = ZipFile.Open(@"E:\MyZipFolder.ZIP", FileAccess.Read)){ // Read the central directory collection List<ZipFile.ZipFileEntry> dir = zip.ReadCentralDir(); // Look for the desired file foreach (ZipFile.ZipFileEntry entry in dir) { if (Path.GetFileName(entry.FilenameInZip) == "MyZipFile.jpg") { // File found, extract it zip.ExtractStoredFile(entry, @"E:\ExtractFolder\MyZipFile.jpg"); break; } }}\[/code\]ZipFile is unknown , is there any suggestion?