On Fri, May 2, 2008 at 10:34 AM, Brain Stormer <[EMAIL PROTECTED]> wrote:
> f=open('file.txt',r)
>  position =False
>
>  for line in f.read().split():

Note that split() splits on any whitespace, not just line endings. In
your case it doesn't much matter I guess.

Kent
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to