chapter 8-5 copy file content