
November 8th, 2003, 06:19 PM
|
 |
Hello World :)
|
|
Join Date: Mar 2003
Location: Hull, UK
|
|
As with most things, Python makes it very easy, not too mention quite attractive.. all you need to do this is these 15 lines of code, oh wait, this is only one line
Code:
count = len(file('file.txt', 'r').readlines())
Mark.
__________________
programming language development: www.netytan.com – Hula
|