file_copy(fname,newname)
Jump to navigation
Jump to search
Description
Copies the given file to the given destination overwriting it if it exists.
Parameters
Parameter | Data Type | Description |
---|---|---|
fname | string | the name of the source file |
newname | string | the file name to give the destination copy of the source |
Return Values
integer: Returns whether or not the copy was successful.
Example Call
// file1.txt will be copied to file2.txt
file_copy("file1.txt", "file2.txt");