Rename a file: Difference between revisions

m (→‎{{header|Perl}}: lang tag)
(→‎{{header|Standard ML}}: ++ gnu smalltalk)
Line 227:
moves = { "input.txt" => "output.txt", "/input.txt" => "/output.txt", "docs" => "mydocs","/docs" => "/mydocs"}
moves.each{ |src, dest| FileUtils.move( src, dest, :verbose => true ) }
 
=={{header|Smalltalk}}==
<lang smalltalk>File rename: 'input.txt' to: 'output.txt'.
File rename: 'docs' to: 'mydocs'.
"as for other example, this works on systems
where the root is / ..."
File rename: '/input.txt' to: '/output.txt'.
File rename: '/docs' to: '/mydocs'</lang>
 
=={{header|Standard ML}}==