All Manuals > LispWorks User Guide and Reference Manual > 34 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 specifier.

to

A pathname specifier.

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 - 21 Dec 2011

NextPrevUpTopContentsIndex