RosettaCodeData/Task/Secure-temporary-file/Groovy/secure-temporary-file.groovy

7 lines
152 B
Groovy

def file = File.createTempFile( "xxx", ".txt" )
// There is no requirement in the instructions to delete the file.
//file.deleteOnExit()
println file