Secure temporary file: Difference between revisions

Line 165:
</pre>
 
<lang groovy>def file = File.createTempFile( "xxx", ".txt" )
=={{header|Groovy}}==
 
{{incomplete|Groovy|JVM Windows related bug workaround JDK-4715154}}Follows technique of Java example<lang groovy>def file = File.createTempFile( "xxx", ".txt" )
// There is no requirement in the instructions to delete the file.
//file.deleteOnExit()
 
println file</lang>
 
Anonymous user