All Manuals > LispWorks User Guide and Reference Manual > 40 The LISPWORKS Package

NextPrevUpTopContentsIndex

copy-file

Function
Summary

Copies the contents of a file to another file.

Package

lispworks

Signature

copy-file from to

Arguments

from

A pathname designator.

to

A pathname designator.

Description

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.

See also

append-file


LispWorks User Guide and Reference Manual - 20 Sep 2017

NextPrevUpTopContentsIndex