Secure temporary file: Difference between revisions

→‎Tcl: Added implementation
No edit summary
(→‎Tcl: Added implementation)
Line 163:
=={{header|Standard ML}}==
<lang sml>val filename = OS.FileSys.tmpName ();</lang>
 
=={{header|Tcl}}==
Requires Tcl 8.6. Will store the name of the file in the variable <code>filenameVar</code> and an open read-write channel on the file in the variable <code>chan</code>.
<lang Tcl>set chan [file tempfile filenameVar]</lang>
 
=={{header|UNIX Shell}}==
Anonymous user