os.Path.copy
Creates a new file by copying an existing file.
Syntax
os.Path.copy(
fromPath STRING,
toPath STRING )
RETURNS INTEGER
- fromPath is the name of the file to copy.
- toPath is the destination filename.
Usage
The function returns TRUE
if the file has been successfully copied,
FALSE
otherwise.
Example
IF NOT os.Path.copy("/tmp/result.txt","/tmp/result-backup.txt") THEN
DISPLAY "Could not copy the file."
END IF