John Machin wrote: > [Michael Hoffman]: > >>for row in csv.reader(fileinput.input()): > > csv.reader requires that if the first arg is a file that it be opened > in binary mode. fileinput.input() is not a file. I have tested this code and it works fine for the provided example. -- Michael Hoffman