using System.Collections.Generic; using System.IO; namespace LunaWolfStudiosEditor.ScriptableSheets.Tables { public static class FlatFileUtility { public static readonly Dictionary FlatFileExtensions = new Dictionary() { { ",", "csv" }, { "|", "psv" }, { ";", "ssv" }, { "\t", "tsv" }, }; public static readonly Dictionary FlatFileDelimiters = new Dictionary() { { "csv", "," }, { "psv", "|" }, { "ssv", ";" }, { "tsv", "\t" }, }; public static string GetExtensionFromPath(string path) { return Path.GetExtension(path).Replace(".", string.Empty); } } }