string = '''Programming is fun
when the work is done
if you wanna make your work also fun:
use Python
'''
f = open('string.text','w')
f.write(string)
f.close()
f = open('string.text','r')
while True:
line = f.readline()
if len(line) == 0:
break
print(line,end='')
f.close()