Blake Garretson wrote: > for line in f: I meant "for line in infile:" Sorry! -------------------------------------------------- Blake T. Garretson http://blakeg.freeshell.org