Secure temporary file: Difference between revisions

Content added Content deleted
(New post.)
(Realize in F#)
Line 203: Line 203:
<syntaxhighlight lang="lisp">(make-temp-file "prefix")
<syntaxhighlight lang="lisp">(make-temp-file "prefix")
;; => "/tmp/prefix25452LPe"</syntaxhighlight>
;; => "/tmp/prefix25452LPe"</syntaxhighlight>

=={{header|F_Sharp|F#}}==
<syntaxhighlight lang="fsharp">
printfn $"%s{System.IO.Path.GetTempFileName()}"
</syntaxhighlight>
{{out}}
<pre>
/tmp/tmpEuSgiY.tmp
</pre>
For the cynical who may not believe the file has been created
</pre>
nigel@nigel:/tmp$ ls *.tmp
tmpEuSgiY.tmp
</pre>



=={{header|Fortran}}==
=={{header|Fortran}}==