There isn't one AFAIK, at least not along the lines you're probably thinking of. The closest is while 1: line = fh.readline() if line == '': break HTH. Alex.