Question: Write a script file named copyfile.py. This script should prompt the user for the names of two text files. The contents of the first file
Write a script file named copyfile.py. This script should prompt the user for the names of two text files.
The contents of the first file should be input and written to the second file.
*****In the same directory that you will save this python script, create 2 additional text files in Notepad. Name the files data1.txt and data2.txt.
*****Enter the string "I coded this program perfectly!" in the data1.txt file
*****Leave the data2.txt file blank
*****When the Python script is run, the string "I coded this program perfectly!" will be read fromt eh data1.txt file and will be written to teh data2.txt file.
*****After the program is executed, check the contents of teh data2.txt file. This file should no longer be empty, it should contain the string "I coded this program perfectly!"
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
