The code is very straightforward. There is not much you will need to get ready beforehand. Just make sure that you include the following using statements in your project and that you have a file containing text called file 3.txt at the following path C: empDocumentsfile 3.txt. You can continue using the console application created in the preceding recipe.
using System.IO.Compression;
using System.Text;
using static System.Console;