Function FileAppend() Foundation

Concatenates two files.

Syntax
FileAppend( <cSourceFile>, ;
            <cTargetFile>  ;
          ) --> nBytesAdded
Return

Returns the number of bytes added to <cTargetFile>. This corresponds to the file size of <cSourceFile>. If an error occurs 0 is returned.

Description

This function is intended to rebuild a complete file from file fragments which are copied to several diskettes.

If <cTargeFile> does not exist it is created otherwise it is opened. The contents of <cSourceFile> are written to the end of <cTargetFile>. If an error occurs during this process the entire file <cTargetFile> will be deleted.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.