Click here to Skip to main content
15,884,237 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
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
Posted
Comments
R. Giskard Reventlov 23-Feb-12 15:43pm    
What have you tried for yourself?
i.fakhari 23-Feb-12 15:53pm    
I think the passage is clear

i want to create a text file in windows seven by c# codes?
then i want to copy and paste it or any other file with each type in windows seven by c# codes?
right?
wizardzz 23-Feb-12 17:00pm    
not very clear still.
R. Giskard Reventlov 23-Feb-12 17:30pm    
Nope: as clear as mud. What have you tried for yourself? You know, before you come here expecting us to give you a solution when we have no idea if you have bothered to do even the most basic research? (what you have asked for, if I have undertsood corectly, is trivial and easy: search here and on Google first.

Seems you are after File.Copy[^].

Regards,

Manfred
 
Share this answer
 
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 :)
 
Share this answer
 
File.Copy
and
File.Move
are nice.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900