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 - The absolute path to the file
text - A string containing the text to write to the file.

Partial Call Graph (max 5 caller/called nodes):
%3 test_read_write_file read_write_file (test acs-templating) template::util::write_file template::util::write_file test_read_write_file->template::util::write_file template::util::set_file_encoding template::util::set_file_encoding (public) template::util::write_file->template::util::set_file_encoding aa_test::write_test_file aa_test::write_test_file (private) aa_test::write_test_file->template::util::write_file acs::disk_cache_eval acs::disk_cache_eval (public) acs::disk_cache_eval->template::util::write_file auth::authority::batch_sync auth::authority::batch_sync (public) auth::authority::batch_sync->template::util::write_file content::deploy content::deploy (public, deprecated) content::deploy->template::util::write_file content::init content::init (public) content::init->template::util::write_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: