Copy file
Syntax
copyfile(source,dest)
copyfile(source,dest,'writable')
status = copyfile(...)
[status,msg] = copyfile(...)
Description
copyfile(source,dest)
copies the file source to the new file dest. source and dest may be absolute pathnames or pathnames relative to the current directory.
copyfile(source,dest,'writable')
checks that dest is writable.
status = copyfile(...)
returns 1 if the file is copied successfully and 0 otherwise.
[status,msg] = copyfile(...)
returns a non-empty error message string when an error occurs.
See Also
delete Delete files and graphics objects
mkdir Make directory
[ Previous | Help Desk | Next ]