此函数返回指定文件名的扩展部分,包括前导点。
filename_ext(fname);
String
ext = filename_ext(file_find_first("*.*", 0));
以上代码获取指定文件的扩展名(作为字符串)。