Hello! I didn't go through all of the code in detail, but.. [ snip ] > while txt[n] != "AWD-BEGIN\n" : > lets.append(txt[n]) > n = n + 1 > if n > len(txt) : ^^ That's too late, isn't it? [ snip ] > Thanks HTH, HAND J"o! -- -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net