On Wed, 10 Aug 2011 01:00 pm Etay wrote: > Is there some simple way to skip over the lines I don't need, and then > inform Python about the format of the lines with the data I do need > within a loop?
Yes. It's called "programming" :)
f = open('some file')
for line in f:
if some_condition(line):
continue # skip the line
process(line)
f.close()
some_condition can be anything you like. You just have to write the code to
make it so.
--
Steven
--
http://mail.python.org/mailman/listinfo/python-list
