for in tif os path basename( name="readme"data extractfile(fread(print("***% **** nametempfile the tempfile module is used to generate temporary filenames and files mkdtemp([suffix [,prefix [dir]]]creates temporary directory accessible only by the owner of the calling process and returns its absolute pathname suffix is an optional suffix that will be appended to the directory nameprefix is an optional prefix that will be inserted at the beginning of the directory nameand dir is directory where the temporary directory should be created mkstemp([suffix [,prefix [dir [,text]]]]creates temporary file and returns tuple (fdpathname)where fd is an integer file descriptor returned by os open(and pathname is absolute pathname of the file suffix is an optional suffix appended to the filenameprefix is an optional prefix inserted at the beginning of the filenamedir is the directory in which the file should be createdand text is boolean flag that indicates whether to open the file in text mode or binary mode (the defaultthe creation of the file is guaranteed to be atomic (and secureprovided that the system supports the o_excl flag for os open(mktemp([suffix [prefix [,dir]]]returns unique temporary filename suffix is an optional file suffix to append to the filenameprefix is an optional prefix inserted at the beginning of the filenameand dir is the directory in which the file is created this function only generates unique filename and doesn' actually create or open temporary file because this function generates name before the file is actually openedit introduces potential security problem to address thisconsider using mkstemp(instead gettempdir(returns the directory in which temporary files are created gettempprefix(returns the prefix used to generate temporary files does not include the directory in which the file would reside temporaryfile([mode [bufsize [suffix [,prefix [dir]]]]]creates temporary file using mkstemp(and returns file-like object that supports the same methods as an ordinary file object mode is the file mode and defaults to ' +bbufsize specifies the buffering behavior and has the same meaning as for the open(function suffixprefixand dir have the same meaning as for mkstemp(the object returned by this function is only wrapper around built-in file object that' accessible in the file attribute the file created by this function is automatically destroyed when the temporary file object is destroyed lib fl ff