fcopy
fcopy |
Purpose
Synopsis
procedure fcopy(namesrc:string|text, namedest:string|text)
procedure fcopy(namesrc:text, opts:integer, namedest:text, optd:integer)
Arguments
namesrc
|
The name of the file to be copied
|
opts
|
Open options for the input file
|
namedest
|
The destination name
|
optd
|
Open options for the output file
|
Example
The following statement appends file
"src" to file
"dst":
fcopy("src",0,"dst",F_APPEND)
Further information
1. This procedure copies the file
namesrc to
namedest. The provided names may use extended notation.
2. With the second form of the procedure it is possible to select options used to open the 2 files (as used with the
fopen procedure). The first syntax corresponds to:
fcopy(src,F_SILENT+F_BINARY,dst,F_SILENT+F_BINARY)
fcopy(src,F_SILENT+F_BINARY,dst,F_SILENT+F_BINARY)
Related topics
Module