Get your own Python server Result Size: 625 x 565
x
 
with open("demofile.txt", "w") as f:
  f.write("Woops! I have deleted the content!")
#open and read the file after the overwriting:
with open("demofile.txt") as f:
  print(f.read())
Woops! I have deleted the content!