Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

create temporary files in python

import tempfile

# Creates a file and returns a tuple containing both the handle and the path.
handle, path = tempfile.mkstemp()
with open(handle, "w") as f:
    f.write("Hello, World!");
Source by softwareengineering.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #create #temporary #files #python
ADD COMMENT
Topic
Name
8+3 =