To add text to the end of an arbitrary text file, put an [AppendFile] context into a template. AppendFile creates a new file if one does not exist already. All text is put at the end of the file, after any text that may already be there. The file must not be a database file that WebCatalog currently has open. See [WriteFile].
Example (normally you would put the following text into a .tpl file on your server and use a web browser to link to it):
The text file "SomeTextFile" is opened, and the text
Hello, my name is Grant. The time is 13:43:01 This is a second line
is written at the end of the file. Notice that carriage returns inside the context are written to the file exactly as they appear. Also notice that any WebCatalog [xxx] tags inside the context are substituted for their real values before being written to the file. You may specify a full or partial path to the file, as in "/Some Folder/file.txt" (starting from the web server's root) or "LocalFolder/file.txt" (starting in the same folder as the template file, looking down into a folder called "LocalFolder").
|When you use the secure option above, you must also provide the name (or URL path) of the file to create.|