ns_writecontent - Write content to a file
This function writes all the content (including any embedded null characters) to the specified file.
fileid Opened Tcl stream
set fp [open /tmp/data.txt] ns_writecontent $fp close $fp
nsd
NaviServer, server built-in