To write a python program for copying the contents from one file to another file.
PC Anaconda - Python 3.7
Create a text file with some content in it.
Open the created text file.
Create another empty text file.
Copy the content of text file to empty file using write function.
#developed by: ROSHINI S
#register number : 212223240142
with open("hello.txt",'r') as file1:
msg=file1.read()
with open("program.txt",'w') as file2:
file2.write(msg)
Thus the program is written to copy the contents from one file to another file.