Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 7 lines (6 sloc) 120 Bytes
fname = "/home/rhancock/bigfile.xferlog"
c = 0
with open(fname, "r") as fh:
for line in fh:
c += 1
print(c)