tempfile

tempfile ?get? ?file|dir?
Creates a temporary directory (using tempdir) if needed, and returns unique filenames in this directory for use as temporary files. The temporary directory is deleted when the program exits
tempfile clean
remove all temporary files for the running program.
tempfile cleanall
remove all temporary files, including those of other Extral programs.