>
> line = line.rstrip("\r\n") should take care of it. If you leave out
> the parameter, it will strip out all whitespace at the end of the
> line, which is what I do in most cases.
thanks for the solution Michael,cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list
