Py20
Fri 17 April 2026
# Program 54: Copy File
def main():
f1 = open("test.txt", "r")
f2 = open("copy.txt", "w")
data = f1.read()
f2.write(data)
f1.close()
f2.close()
main()
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
Cell In[6], line 13
9
10 f1.close()
11 f2.close()
12
---> 13 main()
Cell In …Category: misc
Read More