os.tmpfile
NA
# !/usr/bin/python3 import os # The file has no directory entries associated with it and will be # deleted automatically once there are no file descriptors. tmpfile = os.tmpfile() tmpfile.write('Temporary newfile is here.....') tmpfile.seek(0) print tmpfile.read() tmpfile.close
Temporary newfile is here.....