close
Terminates output to the currently open output file.
Syntax
close
Input
N/A
Example
Template:
{'Create a file containing today's date}
{open "date.fil"}
{date()}
{close}
Comments
When Templex processes a template file, output is sent to either stdout or a file specified in the command line. Output can be redirected to a file using the open statement.
When an output file is closed, the output is redirected to either the next remaining open output file or the file specified on the command line if all internal files are closed.