Anonymous user
File input/output: Difference between revisions
→{{header|Python}}: Source to shutil.copyfile makes the other examples redumdant.
m (→{{header|Python}}: more robust version: `with`, "b", readline) |
(→{{header|Python}}: Source to shutil.copyfile makes the other examples redumdant.) |
||
Line 797:
=={{header|Python}}==
The following use of the standard libraries shutil.copyfile is to be preferred. (Current source code ensures a restricted buffer is used to copy the files using binary mode and any used file descriptors are always closed).
<python>import shutil
shutil.copyfile('input.txt', 'output.txt')</python>
=={{header|RapidQ}}==
|