Adds the content of a buffer at the end of a file.
MyBuffer is Buffer
MyBuffer = fLoadBuffer("C:\tmp\Page1.html")
IF fAddBuffer("C:\test\MyFile.html", MyBuffer)
Info("Addition successful")
END
Syntax
<Result> = fAddBuffer(<File used> , <Buffer to add>)
<Result>: Boolean
- True if the addition was performed,
- False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<File used>: Character string
File to be used (up to 260 characters). This parameter can be: - a file name. This file will be automatically sought in the current directory (returned by fCurrentDir).
- a file name with its full or relative path. A UNC path can be used.
Caution: this file is modified by fAddBuffer.
<Buffer to add>: Buffer
Name of the buffer variable whose content must be added to the file.