This should do it:

print 'Line count: %s' % len(open(file).readlines())
Feedback

Powered by Vanilla PHP feedback form