title: Extract full data from *.pickle file
body: <p>Pickle file is stored in binary form and I want to know is there any way to convert this  file into unicode and store it in *.txt file.  </p>
  
  <p>I am using a toolkit where the output is stored in a *.pickle file. 
  Now I want to read the output of that *.pickle  file  and I am using the following commands </p>
  
  <pre><code>with open('filename','rb') as f:
      abc = pickle.load(f)
  </code></pre>
  
  <p>Now when I am writing " abc " in python shell this is not displaying the full file. The *.pickle file is a huge file and while displaying it on terminal it is not showing the full file. Then I  tried write this file into  some other *.txt file but again it is giving some errors. Method to convert it to *.txt file is </p>
  
  <pre><code>f = open("pul.txt", "w")
  f.write(abc)      
  f.close()
  </code></pre>
  
  <p>But it is giving the error and not writing the data from *.pickle file into "pul.txt".
  I want to know how can I check the full data in *.pickle file, e.g., If I have to grep certain things from this *.pickle file how will I do ? Is there any way ?</p>
  
  <p>Thanks</p>