I have a class &#39;book&#39; and function for input and display of the class members<div>then there are 2 functions for pickling and unpickling class instances from and to a file.</div><div>after unpickling , then displaying it shows only the last class instance stored in the file!</div>
<div>what can be the possible problems? </div>