Rename a file: Difference between revisions
Content deleted Content added
→{{header|Tcl}}: Note that 'file nativename' is usually unnecessary |
objc |
||
Line 168:
-- Root
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}}==
|