Computer Science, asked by kalpeshraikar9063, 9 months ago

Write a script 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

Answers

Answered by Anonymous
18

with open("test.txt") as f:

   with open("out.txt", "w") as f1:

       for line in f:

           f1.write(line)

Similar questions