ash wrote:
> hi,
> when i try to unpickle a pickled file in binary format, i get this
> error:
>
> E:\mdi>test.py
> Traceback (most recent call last):
> File "E:\mdi\qp.py", line 458, in OnReadButton
> data=p.load(file("ques.dat","r"))
> EOFError
>
> what is the reason? how do i overcome this?
> Thanks in advance for you valuable time
You have to open your file in binary mode for both dumping and loading the
data. For that just add a "b" to the mode parameter, e. g.
file("ques.dat", "rb").
Peter
--
http://mail.python.org/mailman/listinfo/python-list