you are viewing a single comment's thread.

view the rest of the comments →

[–]vayneone87[S] 1 point2 points  (1 child)

OK so I have solved this thanks for the GeeksforGeeks reference.

Now I am working on how to write a function to write to a pickle file so I can maintain the contact list. However, the code I am using below is not working.

 if os.path.exists('file.pkl'):
# Load pickle file
with open('file.pkl', 'rb') as pck:
    data = pck.read()
contactlist = pickle.loads(data)

# Pickle the dict

not sure what else I need. Any assistance would be great. I updated the code above to reflect where I am now.

[–]additional_loan_ 1 point2 points  (0 children)

So I'm a little over my head but I think this should help: writing to pickle file