[Tutor] Simple Question...

Ali Polatel alipolatel at yahoo.com
Sat Oct 16 19:46:45 CEST 2004


Hi dear tutors...
I want to write a programme that will get certain information from a file.:
open('c:\\example.txt','a')  # file opened...
Now I want it to choose a random line and read it... but just one line and not the first one but a random one...
how to do that?
Regards,
Ali Polatel

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20041016/9338874f/attachment-0001.htm


More information about the Tutor mailing list