CSharp examples for System.IO:File Path
Get File Postfix Str
using System.IO;//from w ww. jav a 2s . c o m using System; public class Main{ public static string GetPostfixStr(string filename) { int start = filename.LastIndexOf("."); int length = filename.Length; string postfix = filename.Substring(start, length - start); return postfix; } }