To write a python program for copying the contents from one file to another file.
PC Anaconda - Python 3.7
Get the file name and location from the user.
Give a new file name to create a copy of a file content
Read te file and close the file.
Now write the content in the new file
When done print "File copied successfully".
End the program
Developed by: HASNA MUBARAK AZEEM
Reg No: 212223240052
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.
