To write a python program for copying the contents from one file to another file.
PC Anaconda - Python 3.7
#Program for getting the copy file from the contents of a file using command line arg
#Developed by: GOWTHAM N
#Register Number : 23013437
with open("text1.txt",'r') as fp:
msg1=fp.read()
with open("copytxt",'w') as fp1:
fp1.write(msg1)
Thus the program is written to copy the contents from one file to another file.