def lesFil(filnavn): fil = open(filnavn) for linje in fil: print(linje) fil.close() lesFil("navn.txt") lesFil("navn.txt")