Copies the contents of a file to another file.
lispworks
copy-file from to
| from⇩ |
A pathname designator. |
| to⇩ |
A pathname designator. |
The function copy-file copies the contents of the file from to another file. The file from must exist.
copy-file opens from for input and to for output using if-exists :supersede (see cl:open in the Common Lisp HyperSpec) and copies the contents from from to to.
On any failure copy-file signals an error.
copy-file does not return a useful value.
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:41