Skip to content

Instantly share code, notes, and snippets.

@computer-tutor
Created April 28, 2020 06:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save computer-tutor/36ef4d9c564f74dfa0cf481c27c8baf6 to your computer and use it in GitHub Desktop.
Save computer-tutor/36ef4d9c564f74dfa0cf481c27c8baf6 to your computer and use it in GitHub Desktop.
name1 = input("Enter file to be read from:")
name2 = input("Enter file to be appended to:")
fin= open (name1,'r')
data2=fin.read()
fin.close()
fout= open(name2,"a")
fout.write(data2)
fout.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment