template::util::write_file (public)

 template::util::write_file path text

Defined in packages/acs-templating/tcl/util-procs.tcl

Writes a text file

Parameters:
path (required)
The absolute path to the file
text (required)
A string containing the text to write to the file.

Testcases:
read_write_file
Source code:

    file mkdir [file dirname $path]

    set fd [open $path w]

    template::util::set_file_encoding $fd

    puts -nonewline $fd $text
    close $fd
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: