Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

write object to file python

import dill

# Save the file
dill.dump(myObject, file = open("myObject.pickle", "wb"))

# Reload the file
myObject = dill.load(open("myObject.pickle", "rb"))
 
PREVIOUS NEXT
Tagged: #write #object #file #python
ADD COMMENT
Topic
Name
5+1 =