1file = open(“testfile.txt”,”w”)
2
3file.write(“Hello World”)
4file.write(“This is our new text file”)
5file.write(“and this is another line.”)
6file.write(“Why? Because we can.”)
7
8file.close()
1fin = open("NAME.txt", 'r')
2body = fin.read().split("\n")
3line = fin.readline().strip()