コード例 #1
0
        // Gets the extension for a file.  The return
        // value is always lowercase with a leading '.'.
        // <param name="strFullName">The full name of a file.</param>
        public static string GetExt(string strFullName)
        {
            FileName FN = new FileName(strFullName);

            return(FN.Extension.ToLower());
        }
コード例 #2
0
        // Returns the file path with a trailing '\'.
        // <param name="strFullName">The full name of a file.</param>
        public static string GetPath(string strFullName)
        {
            FileName FN = new FileName(strFullName);

            return(FN.Path);
        }