[EMAIL PROTECTED] writes: > If the OP needs line numbers elsewhere in the > code something like the following would work. > > infile = open(fileName, 'r') > for lineNumber, line in enumerate (infile): > # enumerate returns numbers starting with 0. > if lineNumber == 0: continue > print line,
This also seems like a good time to mention (untested):
from itertools import islice
for line in islice(infile, 1, None):
print line,
--
http://mail.python.org/mailman/listinfo/python-list
