Jump to content

Secure temporary file: Difference between revisions

no edit summary
(Add NetRexx implementation)
No edit summary
Line 150:
WRITE(FIle='DenyForOthers') "something"
WRITE(FIle='DenyForOthers', DELETE=1)</lang>
 
=={{header|Icon}} and {{header|Unicon}}==
 
A posix-based solution that works in both languages:
 
<lang unicon>procedure main()
write("Creating: ",fName := !open("mktemp","rp"))
write(f := open(fName,"w"),"Hello, world")
close(f)
end</lang>
 
=={{header|Java}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.