Rich> Or perhaps along that same vein... Rich> while line from file.readline(): Rich> ... Python 2.2 with iterator support already supports for line in file: ... -- Skip Montanaro (skip at pobox.com) http://www.mojam.com/ http://www.musi-cal.com/