Get file type from path string
using System; using System.Collections.Generic; using System.Text; using System.Configuration; public class Utils { public static string GetFileType(string pathFilename) { string rc = ""; int start = pathFilename.LastIndexOf('.'); if ((start > -1) && ((start + 1) < pathFilename.Length)) rc = pathFilename.Substring(start + 1); return rc; } }