__mkstemp__
- :
[fid, name, msg] =__mkstemp__(template)¶ - :
[fid, name, msg] =__mkstemp__(template, delete)¶ Create and open a unique temporary file.
template must end in six ‘X’ characters, which are replaced to make the name unique. The file is opened for reading and writing in binary mode. If delete is true the file is removed when the interpreter exits. On failure fid is -1 and msg describes the problem.