Thanx Mike, My problem solved !! I loaded the entire file contnets into
list and my job was a piece of cake after that.
Srikar
--
http://mail.python.org/mailman/listinfo/python-list
Hi there, I'm just curious to know as to how the changes you have
suggested will solve the problem. Instead of appending (what I was
doing), now we are opening and storing the files in 'binary' format.
All the other entries in my file will be gone when I write into the
file again.
What I actuall n
"sri2097" <[EMAIL PROTECTED]> writes:
> Hi all, I'm storing number of dictionary values into a file using the
> 'cPickle' module and then am retrieving it. The following is the code
> for it -
>
> # Code for storing the values in the file
> import cPickle
>
> book = {raw_input("Name: "): [int(raw_
sri2097 wrote:
> Hi all, I'm storing number of dictionary values into a file using the
> 'cPickle' module and then am retrieving it. The following is the code
> for it -
>
> # Code for storing the values in the file
> import cPickle
>
> book = {raw_input("Name: "): [int(raw_input("Phone: ")),
> r
Hi all, I'm storing number of dictionary values into a file using the
'cPickle' module and then am retrieving it. The following is the code
for it -
# Code for storing the values in the file
import cPickle
book = {raw_input("Name: "): [int(raw_input("Phone: ")),
raw_input("Address: ")] }
file_ob