Can System.IO.Compression assembly create zip files of some specific files like .txt, .bak or it simply create zip file of directory? I am not being able to craete zip files of specific files but rather only the zip file of directory is getting created
Asked
Active
Viewed 128 times
1 Answers
0
You can create a ZipArchive
object and then add individual files (including just one) by creating ZipArchiveEntry
objects.
As a convenience, the ZipFileExtensions
class has an CreateEntryFromFile
method.

Damien_The_Unbeliever
- 234,701
- 27
- 340
- 448