Anonymous user
Truncate a file: Difference between revisions
→{{header|Python}}: Used "with" statement, and changed to be a function
(Divide the task description into three paragraphs. Change a few words, but without changing the meaning of the task.) |
(→{{header|Python}}: Used "with" statement, and changed to be a function) |
||
Line 173:
=={{header|Python}}==
<lang python>
"Open a file for writing, and truncate it to size bytes."
f.
=={{header|Ruby}}==
|