Ejemplo n.º 1
0
        public static void Processor()
        {
            Console.Title = "Bloom Converter";
            Program.Choose(1, "blt", out string[] fileNames);
            if (fileNames.Length < 1)
            {
                return;
            }

            string filepath, ext;
            Bloom  blt;

            foreach (string file in fileNames)
            {
                using (blt = new Bloom())
                {
                    ext      = Path.GetExtension(file);
                    filepath = file.Replace(ext, "");
                    ext      = ext.ToLower();

                    Console.Title = "Bloom Converter: " + Path.GetFileNameWithoutExtension(file);
                    if (ext == ".blt")
                    {
                        blt.BLTReader(filepath); blt.TXTWriter(filepath);
                    }
                }
            }
        }