FileAppend

Appends one or more files to another file.

Syntax:

FileAppend (source-list, destination)

Parameters:

(s) source-list a string containing one or more filenames, which may be wildcarded.

(s) destination target file name.

Returns:

(i) @TRUE if all files were appended successfully.; @FALSE if at least one file wasn't appended.

 

Use this function to append an individual file or a group of files to the end of an existing file. If destination does not exist, it will be created.

The file(s) specified in source-list will not be modified by this function.

Source-list may contain * and ? wildcards. Destination may not contain wildcards of any type; it must be a single file name.

This function supports extended-length path names.

Examples:

testfile1=FileLocate("win.ini")
testfile2=FileLocate("system.ini")
testfile3="c:\winini.bak"
FileAppend(testfile1,testfile3)
FileAppend(testfile2,testfile3)
Message("FileAppend",StrCat(testfile3,@CRLF,"now contains",@CRLF,testfile1,@CRLF,"and",@CRLF,testfile2))

 

See Also:

FileCopy, FileDelete, FileExist