Version 3 of file tempfile

Updated 2011-08-24 00:08:58 by RLE

Creates a temporary file and returns an open read-write channel to it.

file tempfile ?varName? ?template?

If varName is given, set that variable to the name of the temporary file (otherwise tries to delete the file at the first opportunity). If template is given, use it to guide the filename generated.

This command was introduced by TIP # 210 in Tcl 8.6.