Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Copying a File
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
awesomej01




PostPosted: Sat Apr 24, 2004 9:16 pm   Post subject: Copying a File

For my final school project, I plan to make a word processor. I was wondering if someone can post an example to show me how to use the command File.Copy
Sponsor
Sponsor
Sponsor
sponsor
Delta




PostPosted: Sat Apr 24, 2004 10:23 pm   Post subject: (No subject)

code:
File.Copy ("c:\file.txt", "c:\newfile.txt")


boom... that takes a the file "file.txt" and copies it as "newfile.txt"
Raugrist




PostPosted: Sun Apr 25, 2004 5:40 am   Post subject: (No subject)

And if you don't know where the file you want to copy will be (but you know it's in the same directory as the turing file), you should be able to use:
File.Copy (Dir.Current + "/file.txt", "c:/newfile.txt")
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: