Re: storing in list and retrieving.

2012-02-24 Thread Smiley 4321
Thanks. It was very simple with using 'pickle'. Thanks. -- On Thu, Feb 23, 2012 at 4:01 PM, Jean-Michel Pichavant < jeanmic...@sequans.com> wrote: > Smiley 4321 wrote: > >> It requires concepts of 'python persistence' for the code to be designed . >> >> Else it simple. >> >> Looking for

Re: storing in list and retrieving.

2012-02-23 Thread Jean-Michel Pichavant
Smiley 4321 wrote: It requires concepts of 'python persistence' for the code to be designed . Else it simple. Looking for some flow?? Hi, Have a look at http://docs.python.org/library/pickle.html Cheers, JM -- http://mail.python.org/mailman/listinfo/python-list

Re: storing in list and retrieving.

2012-02-23 Thread Chris Angelico
On Thu, Feb 23, 2012 at 7:45 PM, Smiley 4321 wrote: > It requires concepts of 'python persistence' for the code to be designed . > > Else it simple. > > Looking for some flow?? Go through the tutorial on python.org if you haven't, get some code written, and then codify your questions :) Chances a

Re: storing in list and retrieving.

2012-02-23 Thread Smiley 4321
It requires concepts of 'python persistence' for the code to be designed . Else it simple. Looking for some flow?? On Thu, Feb 23, 2012 at 12:01 PM, Chris Angelico wrote: > On Thu, Feb 23, 2012 at 5:24 PM, Smiley 4321 wrote: > > I need to write two file using python script as below - > >

Re: storing in list and retrieving.

2012-02-22 Thread Chris Angelico
On Thu, Feb 23, 2012 at 5:24 PM, Smiley 4321 wrote: > I need to write two file using python script as below - > > 1. Store.py: Write a script to store a list say "store_list = ["Apple", > "Orange", "PineApple". “and so on” ]" to disk. > > 2. Retrieve.py: Read the object stored in the ‘Store.py’ fi

storing in list and retrieving.

2012-02-22 Thread Smiley 4321
I need to write two file using python script as below - 1. Store.py: Write a script to store a list say "store_list = ["Apple", "Orange", "PineApple". “and so on” ]" to disk. 2. Retrieve.py: Read the object stored in the ‘Store.py’ file and print the contents of this list. I have to run on L