Rename a file: Difference between revisions

Content added Content deleted
m (added whitespace before the TOC (table of contents), added a ;Task: (bold) header, added other whitespace and highlighting to the task's preamble.)
Line 1: Line 1:
{{task|File System Operations}}
{{task|File System Operations}}


;Task:
In this task, the job is to rename the file called "input.txt" into "output.txt" and a directory called "docs" into "mydocs".
Rename:
:::*   a file called     '''input.txt'''     into     '''output.txt'''     and
:::*   a directory called     '''docs'''     into     '''mydocs'''.



This should be done twice:
This should be done twice:  
once "here", i.e. in the current working directory
and once in the filesystem root.
once "here", i.e. in the current working directory and once in the filesystem root.


It can be assumed that the user has the rights to do so.
It can be assumed that the user has the rights to do so.

(In unix-type systems, only the user root would have
(In unix-type systems, only the user root would have
sufficient permissions in the filesystem root)
sufficient permissions in the filesystem root.)
<br><br>


=={{header|Ada}}==
=={{header|Ada}}==