Copies the contents of a file to the specified file name.
Parameters |
Description |
AFromFileName |
Source file name. |
AToFileName |
Destination file name. |
AFailIfExists |
Indicates if the function fails when the destination file already exists. |
Boolean - True when the file is successfully copied.
IndyCopyFile is a Boolean function used to copy the contents of the file specified in AFromFileName to the file indicated in AToFileName.
AFailIfExists indicates if the IndyCopyFile function fails when the destination file in AToFileName already exists. When FailIfExists contains False, an existing file using the name in AToFileName will be overwritten.
IndyCopyFile creates TFileStream instances to perform the copy operation.
IndyCopyFile returns True if the copy operation was successfully performed.
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
|
Post feedback to the Indy Docs Newsgroup.
|