CopyFileCopys a text file from one location to another CopyFile ThisFile To ThatFile CopyFile return -1 on failure, or 1 on success. Sample Source
iOk := CopyFile "/tmp/temp123" To "/var/www/html/public/user.pdf"
If iOk < 0 Then
Say "Error! Could not copy file."
EndIf
|
Related Function(s): FileExists; FileSize; FileUpload; Minimum version: 4.5
|