On 2 Pa , 13:39, Ben Finney <[EMAIL PROTECTED]>
wrote:
> [EMAIL PROTECTED] writes:
> > import string
>
> Why import 'string' if you're not using it?
>
> > f=open('/test/test.asc','r')
> > o=open('/test/out.asc','w')
> > for line in f:
> >     s= f.readline()
>
> Your line object is already bound to the 'line' name in each
> iteration. You need to use that, not attempt to read yet another line
> each time.
>

Of course, it helped. Many thanks for all.

piotr

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to