Tags
python
Asked 7 years ago
14 Dec 2016
Views 886
python

python posted

copy one file to another in Python

How to copy one file to another file in Python .
Mitul Dabhi

Mitul Dabhi
answered Nov 30 '-1 00:00

very simple pls check below code for copy one file to another file .

f = open("myfont.txt", "rb");
d = open("data.txt", "wb");
d.write(f.read());
f.close()
d.close()
Post Answer