> > > p = re.compile('.*[pP][ython].*') > > > f=file("aufgabe14.test") > **Here f is a filepointer** > > > > for currentline in f: > **So this code can't work, because you can't iterate over a filepointer Actually, It *does* work for recent Python versions. Tom