Secure temporary file: Difference between revisions
Content added Content deleted
Line 165: | Line 165: | ||
</pre> |
</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() |
//file.deleteOnExit() |
||
println file</lang> |
println file</lang> |
||