File_copy - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

NOTOC {{-}}

Notation

Description

Copies file fname to newname.

'''Note: '''Like GameMaker, if newname already exists, fname will overwrite it.

Parameters

  • fname: The source file to copy
  • newname: The destination file

Return Values

Returns 1 if it succeeds, 0 if it fails.

Example Call

// file1.txt will be copied to file2.txt
file_copy("file1.txt", "file2.txt");