file_copy

Copies a file.

Available in:

Apps (win) Apps (char) Reportwriter RPC Standalone PL
X X X X X

Syntax

void file_copy(source,destination[,file-type])
string         source,destination,file-type

Description

source specifies the file to copy.

destination specifies the filename to copy to. Be sure to give a complete file specification.

file-type (optional) specifies
  • a for text (ascii) copy
  • b for binary copy (default).

Example

Copies a file to the Windows machine's clipboard.
file_copy("/tmp/bad.log","gui!clipboard","a");