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

[REBOL] Re: How to copy file ?

From: AJMartin:orcon at: 24-Dec-2003 22:39

Patrick wrote:
> I am surprised not to find a "file copying" command
I'm fairly sure there isn't one. You can always write your own. Here's a simplistic version: File-Copy: func [Destination [file! url!] Source [file! url!]] [ write/binary Destination read/binary Source ] And use it like: File-Copy to-file rejoin [image-dir %pwr-reb-tech100.gif] %pwr-reb-tech100.gif But, as you can see it doesn't really save that much over the individual 'write and 'read words and is less versatile. And if one needs to do anything special with the files (like using one of the refinements of 'read or 'write, the above function is useless. Andrew J Martin Grail Jedi ICQ: 26227169 http://www.rebol.it/Valley/ http://valley.orcon.net.nz/ http://Valley.150m.com/