Newbie Needs help!!
Scott David Daniels
Scott.Daniels at Acm.Org
Fri Oct 10 13:26:43 EDT 2003
Bryano wrote:
...
> FileCon = InFile.read()
At this point you have read the entire file.
> FileLines = InFile.readline()
So there is nothing to read here.
-- Oh, I see, you expect readline() to return the line number.
It returns the next line in the file (which is empty).
You need to count the lines yourself, if you want a count.
-Scott David Daniels
Scott.Daniels at Acm.Org
More information about the Python-list
mailing list