Make a backup file: Difference between revisions

Content added Content deleted
(→‎{{header|REXX}}: added the REXX language.)
(a)
Line 13: Line 13:


Some examples on this page assume that the original file already exists. They might fail if some user is trying to create a new file.
Some examples on this page assume that the original file already exists. They might fail if some user is trying to create a new file.



=={{header|AutoHotkey}}==
=={{header|AutoHotkey}}==
Line 29: Line 28:
file.Write("This is a test string.`r`n")
file.Write("This is a test string.`r`n")
file.Close()</lang>
file.Close()</lang>

=={{header|AWK}}==
=={{header|AWK}}==
<lang AWK>
<lang AWK>
Line 70: Line 70:
(with-open-file (out file :direction :output)
(with-open-file (out file :direction :output)
(print data out))))</lang>
(print data out))))</lang>

=={{header|Elixir}}==
<lang elixir></lang>

{{out}}
<pre>
</pre>


=={{header|Go}}==
=={{header|Go}}==