In message <[EMAIL PROTECTED]>, Yi Xing
wrote:

> I want to read specific lines of a huge txt file (I know the line #).
> Each line might have different sizes. Is there a convenient and fast
> way of doing this in Python? Thanks.

    file("myfile.txt").readlines()[LineNr]

Convenient, yes. Fast, no. :)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to