/// using System.IO; public string getExtension(string FullName) { return new FileInfo(FullName).Extension; }