Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python temporaty files

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: #python #temporaty #files
ADD COMMENT
Topic
Name
4+7 =