Jump to content

Make a backup file: Difference between revisions

m (→‎{{header|Wren}}: Minor tidy)
imported>Fth
Line 195:
hd(System.argv) |> RC.backup_file</syntaxhighlight>
 
=={{header|Forth}}==
<syntaxhighlight lang="forth">
: backup ( addr u -- )
2dup pad place s" .bak" pad +place
2dup pad count rename-file throw
w/o create-file throw
s" This is a test string." 2 pick write-file throw
close-file throw ;
 
s" testfile" backup
</syntaxhighlight>
=={{header|Go}}==
===Rename===
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.