1. Name of Students Omkar Rane
Roll No D422
Batch D1
Experiment No EX-6.3
Title of Experiment Create a duplicate file from original file .
Write An Algorithm:
Step 1) start
Step2) handle=open(“data.txt”, “r”)
Step3) Reading source file q=handle.read()
Step 4) close handle object.
Step5) display source file data.txt
Step 6)fhandle=open(“copy.txt”,”w”) Create a duplicate file “copy.txt” by write
module.
Step7) m=fhandle.close(q)
Step8) close fhandle object.
Step9) display m
Step 10) close
Code:
handle=open("data.txt","r")
q=handle.read()
handle.close()
print q
fhandle=open("copy.txt","w")
m=fhandle.write(q)
handle.close()
print m