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

-- 
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with unsubscribe as the subject.

Reply via email to