It requires concepts of 'python persistence' for the code to be designed .<br><br>Else it simple.<br><br>Looking for some flow??<br>----<br><br><div class="gmail_quote">On Thu, Feb 23, 2012 at 12:01 PM, Chris Angelico <span dir="ltr"><<a href="mailto:rosuav@gmail.com">rosuav@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Thu, Feb 23, 2012 at 5:24 PM, Smiley 4321 <<a href="mailto:ssmile03@gmail.com">ssmile03@gmail.com</a>> wrote:<br>

> I need to write two file using python script as below -<br>
><br>
> 1. Store.py: Write a script to store a list say "store_list = ["Apple",<br>
> "Orange", "PineApple". “and so on” ]" to disk.<br>
><br>
> 2. Retrieve.py: Read the object stored in the ‘Store.py’ file and print the<br>
> contents of this list.<br>
><br>
> I have to run on Linux with python-2.6.5.<br>
<br>
</div></div>This looks like homework, so I'm just going to give a broad hint.<br>
<br>
Figure out a file format (one per line, or pickled, or whatever), then<br>
write one program that writes that format and another that reads it.<br>
The open() built-in function will open files for reading or writing,<br>
so that's a good place to start.<br>
<br>
Get as far as you can on your own, and if you get stuck, ask the list<br>
for more specific help. Good luck!<br>
<span class="HOEnZb"><font color="#888888"><br>
Chris Angelico<br>
--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></span></blockquote></div><br>