C#
文章平均质量分 65
lnlawrence
这个作者很懒,什么都没留下…
展开
-
C#文件操作
用file.move 原形: public static void Move ( string sourceFileName, string destFileName ) 参数 sourceFileName 要移动的文件的名称。 destFileName 文件的新路径。 using System; using System.IO; class Test { public static void M转载 2010-04-17 13:08:00 · 308 阅读 · 0 评论 -
获取任意文件路径及文件名、运行程序当前目录
文件路径及文件名获取:System.IO.Path.GetFileNam(file) //返回带扩展名的文件名 System.IO.Path.GetFileNameWithoutExtension(file) //返回不带扩展名的文件名 System.IO.Path.GetDirectoryName(file) //返回文件所在目录 获取运行程序路径:转载 2010-04-17 13:15:00 · 822 阅读 · 0 评论