fp = open('adat.txt', 'r') while line := fp.readline(): print(line.rstrip()) fp.close()