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

The following example shows how to open a zip archive and extract all .txt files to a folder

using System;
using System.IO;
using System.IO.Compression;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            string zipPath = @"c:\example\start.zip";
            string extractPath = @"c:\example\extract";

            using (ZipArchive archive = ZipFile.OpenRead(zipPath))
            {
                foreach (ZipArchiveEntry entry in archive.Entries)
                {
                    if (entry.FullName.EndsWith(".txt", StringComparison.OrdinalIgnoreCase))
                    {
                        entry.ExtractToFile(Path.Combine(extractPath, entry.FullName));
                    }
                }
            } 
        }
    }
}

Reading and writing .zip files/
Reading and writing .zip files
Writing to a zip file
Writing Zip Files in-memory
Get files from a Zip file
The following example shows how to open a zip archive and extract all .txt files to a folder

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