Anonymous user
Secure temporary file: Difference between revisions
→{{header|OCaml}}
m (Moved to Enviro cat) |
|||
Line 39:
// both can only be accessed by the current user (the program?).
}</d>
=={{header|OCaml}}==
From the module Filename, one can use the functions [http://caml.inria.fr/pub/docs/manual-ocaml/libref/Filename.html#VALtemp_file temp_file] or [http://caml.inria.fr/pub/docs/manual-ocaml/libref/Filename.html#VALopen_temp_file open_temp_file]
<ocaml>
# Filename.temp_file "prefix." ".suffix" ;;
- : string = "/home/blue_prawn/tmp/prefix.301f82.suffix"
</ocaml>
=={{header|Python}}==
Line 64 ⟶ 71:
finally:
os.close(fd)
=={{header|UNIX Shell}}==
|