Essential C# Reading and writing .zip files  Suggest an edit

Writing to a zip file

To write a new .zip file:

System.IO.Compression
System.IO.Compression.FileSystem

using (FileStream zipToOpen = new FileStream(@"C:\temp", FileMode.Open)) 
{
    using (ZipArchive archive = new ZipArchive(zipToOpen, ZipArchiveMode.Update)) 
    {
        ZipArchiveEntry readmeEntry = archive.CreateEntry("Readme.txt");
        using (StreamWriter writer = new StreamWriter(readmeEntry.Open())) 
        {
            writer.WriteLine("Information about this package.");
            writer.WriteLine("========================");
        }
    }
}


Table Of Contents
22 Enum
25 GUID
99 Reading and writing .zip files
107 Stream
108 Timers
  ↑ ↓ to navigate     ↵ to select     Esc to close