| Start | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Listing ZIP contents This snippet will list all the filenames of a zip archive. The filenames are relative to the zip root. |
||||||||||
| Extracting files from ZIP files Extracting all the files into a directory is very easy: When the file already exists, a System.IO.IOException will be thrown. Extracting specific files: Any of these methods will produce the same result. |
||||||||||
| Updating a ZIP file To update a ZIP file, the file has to be opened with ZipArchiveMode.Update instead. There is also the option to write directly to a file within the archive: Remarks
When a InvalidDataException is thrown, it can have 3 causes:
All information has been taken from this MSDN page (opens new window) |
Read Article
https://develop.horje.com/learn/1434/reference