Exemplo n.º 1
0
        void ExtractFile(ArcFile arc, string name)
        {
            Entry entry = arc.Dir.FirstOrDefault(e => e.Name.Equals(name, StringComparison.OrdinalIgnoreCase));

            if (null == entry)
            {
                Console.Error.WriteLine("'{0}' not found within {1}", name, m_arc_name);
                return;
            }
            Console.WriteLine("Extracting {0} ...", entry.Name);
            arc.Extract(entry);
        }