use fileinput to read a specific line

Fredrik Lundh fredrik at pythonware.com
Tue Jan 8 05:57:25 EST 2008


Martin Marcher wrote:

>> i need to read line 4 from a header file
> 
> http://docs.python.org/lib/module-linecache.html

I guess you missed the "using linecache will crash my computer due to 
memory loading, because i am working on 2000 files each is 8mb" part.

</F>




More information about the Python-list mailing list