Makes a temporary filename based on prefix, opens and closes the file, and returns the name.
Under Windows, the filename will include the drive and name of the directory allocated for temporary files (usually the contents of the TEMP variable). Under X Windows, the ``/tmp'' directory is used. Under MacOS, the system temporary folder is used.