Get your own Python server Result Size: 625 x 565
x
 
with open("demofile.txt", "a") as f:
  f.write("Now the file has more content!")
#open and read the file after the appending:
with open("demofile.txt") as f:
  print(f.read())
Hello! Welcome to demofile2.txt
This file is for testing purposes.
Good Luck!Now the file has more content!