vl-file-copy


(vl-file-copy srcFile dstFile [ doAppend ] )

This function copies the content of srcFile into dstFile.

Arguments

srcFile  (string) name of the source file to be copied
dstFile  (string) name of the source file to be copied
doAppend  (optional) if provided as non-NIL, the content of srcFile is appended to the content of dstFile

Return

(integer) number of bytes copied from srcFile; -1 if an error happened

Example


Remarks

if no path is specified for the file name, the file is searched in actual OS folder;

the file copy operation also supports binary file content (not only text files)



©  Bricsys NV. All rights reserved.