通过C#代码创建,复制和粘贴文件 [英] Create, Copy and Paste files by c# codes

查看:81
本文介绍了通过C#代码创建,复制和粘贴文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

如何通过一些代码在C#(和Win7)中创建一个新的文本文件?

在C#(和Win7)中复制和粘贴任何文件的代码是什么?

祝您好运

Hi everybody!

how to create a new text file in C# (and win7) by some codes?

whats the code that copy and paste any files in C# (and win7)

Good Luck

推荐答案

似乎您在 ^ ].

问候,

曼弗雷德(Manfred)
Seems you are after File.Copy[^].

Regards,

Manfred


除了解决方案1,

1)要创建文件,请阅读 File.Create [ ^ ]
2)要粘贴,您可以看一下本文
In addition to the Solution 1,

1) To create file please read it File.Create[^]
2) To paste, you might have a look this article Drag and drop, cut/copy and paste files with Windows Explorer[^]

Hope it helps :)


File.Copy

File.Move

很好.


这篇关于通过C#代码创建,复制和粘贴文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆