Copying files in python 2.7
python, python-2.7
Solution
check out the `shutil` module in standard library:
shutil.copyfile(src, dst)
http://docs.python.org/2/library/shutil.html#shutil.copyfile
Problem
Ok well i have another question. I implemented the error checking but for some reason it still isn't working. I still get a python error instead of the error i just wrote in the program. ``` Traceback (most recent call last): File "E:/python/copyfile.py", line 31, in <module> copyFile() File "E:/python/copyfile.py", line 8, in copyFile file1 = open(source,"r") IOError: [Errno 2] No such file or directory: 'C:/Users/Public/asdf.txt' ```