Anonymous user
File input/output: Difference between revisions
→{{header|Python}}
Line 795:
<python>x = open("output.txt","w")
y = open("input.txt","r")
x.write(y.read())</python>
x.close()
y.close()
or:
<python>import shutil
shutil.copyfile('input.txt', 'output.txt')</python>
=={{header|RapidQ}}==
|