FileInfo 类

来源:互联网 发布:云计算的市场需求分析 编辑:程序博客网 时间:2024/05/17 08:38

System.IO.Path.GetExtension("c:/windows/test.txt")'获取扩展名
System.IO.Path.GetFileName("c:/windows/test.txt")'获取文件名
System.IO.Path.GetDirectoryName("c:/windows/test.txt")'获取文件夹

 

FileInfo 类 MSDN

http://msdn.microsoft.com/zh-cn/library/system.io.fileinfo(VS.80).aspx

原创粉丝点击