Entering edit mode
9.8 years ago
dnyanepooja138
•
0
Hi!
I am trying to convert a .pkl file into text file using cPickle module in python. Using the code
>>> import cPickle
>>> data=cPickle.load(open("input.pkl","rb"))
>>> output=open("write.txt","w")
>>> output.write(str(data))
>>> output.flush()
>>> output.close()
But it is getting converted partially (only few lines of pkl file are getting converted into text format).
is there any way? please suggest.