Files
korenkonder_PD_Tool/PD_Tool/classes/BLT.cs
T
2020-05-17 14:57:58 +03:00

31 lines
952 B
C#

using System;
using KKdMainLib.IO;
using KKdMainLib.F2;
namespace PD_Tool
{
public class BLT
{
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); }
//else if (ext == ".txt") { blt.TXTReader(filepath); blt.BLTWriter(filepath); }
}
}
}
}