To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
hg clone
History | View | Annotate | Download (173 Bytes)
source = open('data.txt', 'r')
number = 0
# count number of data records
for line in source:
number = number + 1
source.close()
print "Total number of lines:", number