Template Engine > Connecting templates to Template Engine > Template Engine script functions > ResolveTextTemplateToFile

ResolveTextTemplateToFile
Syntax
ResolveTextTemplateToFile(tmplURL,tmplCP,outURL,outCP);
tmplURL
Reference (file or http) to the template. Can be an absolute path or a path relative to the working directory of the StreamServer application.
tmplCP
The default codepage of the template. This codepage is used only when Template Engine cannot find out which codepage is used in the template. An empty string ("") is interpreted as "UTF-8".
outURL
Reference (file or http) to the output file. Can be an absolute path or a path relative to the working directory of the StreamServer application.
outCP
Description
Writes the Template Engine output to a file.
Returns
A number indicating whether the output file is successfully generated.
0
1
Example
ResolveTextTemplateToFile(”C:\tmpl\invoice.txt”,"",
”C:\out\out.txt”,"");
 
OpenText StreamServe 5.6 Updated: 2013-03-01