||Opens a text file to append text
||TAPPEND(path : STRING [; mode : INTEGER]) : INTEGER
||path : path of a text file
mode : 0 -> ANSI, 1 -> ASCII (default)
||0, if opening failed, else handle of a text file
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.