码迷,mamicode.com
首页 > Windows程序 > 详细

C#拷贝文件源码

时间:2019-02-25 18:49:55      阅读:200      评论:0      收藏:0      [点我收藏+]

标签:拷贝   txt   exist   sts   mail   href   ofo   源码   exists   

下边内容是关于C#拷贝文件的内容。

FileInfo fi = new FileInfo(@"C:file.txt");

if(fi.Exists)br/>{
fi.CopyTo(@"C:copyfile.txt");
}

C#拷贝文件源码

标签:拷贝   txt   exist   sts   mail   href   ofo   源码   exists   

原文地址:https://blog.51cto.com/14132786/2354627

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!