Program to take input -> write in a file with every EOF as start
f = open("code.txt","a")
data = input("Type below: \n")
f.write(f"{data}\n")
f.close()
f = open("code.txt","r")
print(f.read())
f.close()
---code.txt---
coding at 3am.
but its only 2am till now!
lets
2021

Comments
Post a Comment