"sudhir prasad" <[email protected]> wrote
is there any other way to keep track of line number in a file other than
fileinput.filelineno()

You could always do it manually by incrementing a counter every time you read a line. But what's the problem with filelineno()?

If you tell us what your problem is we might be able to offer a suggestion.


--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/

_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to