C#获取文件扩展名的源码

377 阅读1分钟

把做工程过程中经常用的内容做个记录,下面的内容内容是关于C#获取文件扩展名的的内容。

string fileType = System.IO.Path.GetExtension(fileName); if (!string.IsNullOrEmpty(fileType)){ }