One of the most basic things you can do is work with ZIP files. The .NET Framework does an excellent job at providing this functionality right out of the box. You might need to provide ZIP functionality in an application that needs to upload several files to a network share. Being able to ZIP several files and upload a single ZIP file makes more sense than having to upload several smaller files.
Creating and extracting ZIP archives
Getting ready
Perform the following steps:
- Create a console application and call it FilesExample:
- Right-click on the References node and select Add Reference... from the context menu:
- In the Reference Manager, search for the word compression. Add a reference to System.IO.Compression and System.IO.Compression.FileSystem to your...