For any type of data processing, files are absolutely necessary. It very quickly becomes the case that there is too much information to have the user input it manually. You need to be able to handle importing information directly from files of various types.
This chapter, you will look at the most common tasks you need to be able to handle in order to read and write files. You’ll also look at how to deal with other forms of input and output.
4-1. Copying Files
Problem
You need to copy files from one location to another.
Solution
There are two functions from the shutil module that can be used to copy ...