Availability:built-in
[deprecated]tmp_file(+Base, 
-TmpName)Create a name for a temporary file. Base is an identifier for 
the category of file. The TmpName is guaranteed to be unique. 
If the system halts, it will automatically remove all created temporary 
files.
Base is used as part of the final filename. Portable 
applications should limit themselves to alphanumeric characters. The 
directory for temporary files is defined by the Prolog flag tmp_dir.
Because it is possible to guess the generated filename, attackers may 
create the filesystem entry as a link and possibly create a security 
issue. New code should use tmp_file_stream/3.