You could try countlines().   
Also, you likely want eachline() rather than readlines().  eachline() will 
iterate through the file for you.
cheers,
Keith


Reply via email to