public static void Compress(string inputFile, string outputFile) { var coder = new Coder(); using (var reader = File.OpenRead(inputFile)) using (var writer = new BitWriter(outputFile)) { coder.Encode(reader, writer); } }