File input/output: Difference between revisions

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