Jyncs commented on a Page, Get File Extension Substring  -  Sep 04, 2011

You could also do it with this

    public static string GetFileType(string fileName)
    {
        string fileExt;
        string[] arrFile;
        arrFile = fileName.Split(".".ToCharArray());
        fileExt = arrFile[arrFile.Length - 1];
        return fileExt;
    }
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.