using System.IO; namespace codelanguage; public abstract class CraftFile { public string Path { get; set; } public string Extension { get; set; } public DateTime LastModified { get; set; } protected CraftFile(string path) { Path = path; Extension = Path.Split('.').LastOrDefault() ?? ""; } public abstract bool Load(); public abstract bool Save(); }