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
18
with open("test.txt") as f:
with open("out.txt", "w") as f1:
for line in f:
f1.write(line)
Similar questions
English,
5 months ago
Computer Science,
5 months ago
Computer Science,
9 months ago
Biology,
9 months ago
English,
1 year ago
Math,
1 year ago
Math,
1 year ago