Adds the content of a character string at the end of a file.
IF fAddText("C:\test\MyFile.txt", "String added at the end of file")
Info("Addition successful")
END
Syntax
<Result> = fAddText(<File name> , <String 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 name>: 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 fAddText. The file is automatically created if it does not exist.
<String to add>: Character string
Text that must be added to the file.