file = open("demo.txt","w")
file.write("Hello How are you ??")
file.close()

file=open("demo.txt","r")
contents = file.read()
print("The content in the file is: ",contents)
file.close()

file=open("demo.txt","a")
file.write("\nHope all going fine")
file.close()



241c420f0f3d866ed761678d9d747af0bc84f14a
<mask token>

<mask token>
file.write('Hello How are you ??')
file.close()
<mask token>
print('The content in the file is: ', contents)
file.close()
<mask token>
file.write("""
Hope all going fine""")
file.close()

file = open('demo.txt', 'w')
file.write('Hello How are you ??')
file.close()
file = open('demo.txt', 'r')
contents = file.read()
print('The content in the file is: ', contents)
file.close()
file = open('demo.txt', 'a')
file.write("""
Hope all going fine""")
file.close()

file = open("demo.txt","w")
file.write("Hello How are you ??")
file.close()

file=open("demo.txt","r")
contents = file.read()
print("The content in the file is: ",contents)
file.close()

file=open("demo.txt","a")
file.write("\nHope all going fine")
file.close()


