Roman Miklos napsal(a):
> for line in file('data.txt'):
>      print line
>
>   

hmm, a to ještě neznáte with s featurkou "samouzavírání při chybě i 
normálním běhu"  z Py2.5 :

with open('/etc/passwd', 'r') as f:
    for line in f:
        print line ...
        more processing code ...

;-)

-- 
geon
Pavel Kosina

_______________________________________________
Python mailing list
[email protected]
http://www.py.cz/mailman/listinfo/python

Odpovedet emailem