Coding Monkey
Monday, September 27, 2010
count line including linespace
def checkFile():
f=open("./file")
a=0
for line in f:
a = a + 1
f.close()
return a
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment