Topic complex |
Text functions |
Function |
tappend() |
Short |
Opens a text file to append text |
Syntax |
TAPPEND(path : STRING [; mode : INTEGER]) : INTEGER |
Parameter |
path : path of a text file
mode : 0 -> ANSI, 1 -> ASCII (default) |
Return |
0, if opening failed, else handle of a text file |
See also: |
|
Description |
TAPPEND expects an existing text file. These is opened to write; new text is added at the end of the file. That is why TAPPEND is well suited for LOG files.
In opposite to REWRITE no new file is created.
Important: If TAPPEND failed, the corresponding file can exist nevertheless. It can be opened (by another process) allready.
Thus you should always check TDB_LastError in case of an error.
|