Rename a file: Difference between revisions
Content added Content deleted
(→{{header|Tcl}}: Note that 'file nativename' is usually unnecessary) |
(objc) |
||
Line 168: | Line 168: | ||
-- Root |
-- Root |
||
renameFile "/input.txt" "/output.txt" |
renameFile "/input.txt" "/output.txt" |
||
=={{header|Objective-C}}== |
|||
<lang objc>NSFileManager *fm = [NSFileManager defaultManager]; |
|||
[fm movePath:@"input.txt" toPath:@"output.txt" handler:nil]; |
|||
[fm movePath:@"docs" toPath:@"mydocs" handler:nil];</lang> |
|||
=={{header|OCaml}}== |
=={{header|OCaml}}== |