Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: How to copy file ?

From: carl:cybercraft at: 24-Dec-2003 22:39

On 11-Oct-03, Patrick Philipot wrote:
> Hi List, > Wanting to copy a file from one folder to another I found only > this : > ; copy rebol logo > write/binary to-file rejoin [image-dir %pwr-reb-tech100.gif] > read/binary %pwr-reb-tech100.gif > I am surprised not to find a "file copying" command, or have I not > search enough?
I think you've searched enough, as I don't think there is one. I guess RT hasn't bothered because it's so simple using write. ie... write %new-file read %original-file Obviously you'd use write's refinements as required. And also obviously it's a simple matter to code a function to do it, but should the function include a check for over-writing another file or not? And an option to rename the file? Best I think for the programmers to write such a function based on their individual needs. -- Carl Read