
.NET
i不歪
这个作者很懒,什么都没留下…
展开
-
C# 轻松获取路径中文件名、目录、扩展名等
string path = "C://dir1//dir2//foo.txt";string str = "GetFullPath:" + Path.GetFullPath(path) + "/r/n";str += "GetDirectoryName:" + Path.GetDirectoryName(path) + "/r/n";str += "GetFileName:" + Pa转载 2011-06-30 22:24:00 · 2195 阅读 · 0 评论 -
C#判断文件的真正类型,不根据扩展名判断
Normal 0 7.8 磅 0 2 false false false MicrosoftInternetExplorer4 <!-- /* Style原创 2011-06-30 22:31:00 · 2652 阅读 · 0 评论