Bjoern Schliessmann <usenet-mail-0306.20.chr0n0ss at spamgourmet.com> writes: > > if len(line) == 0: break # EOF > "one blank line" == "EOF"? That's strange. Intended? A blank line would have length 1 (a newline character).