tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
11
Task/Rename-a-file/Clojure/rename-a-file.clj
Normal file
11
Task/Rename-a-file/Clojure/rename-a-file.clj
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
(import '(java.io File))
|
||||
|
||||
(.renameTo (File. "input.txt") (File. "output.txt"))
|
||||
(.renameTo (File. "docs") (File. "mydocs"))
|
||||
|
||||
(.renameTo
|
||||
(File. (str (File/separator) "input.txt"))
|
||||
(File. (str (File/separator) "output.txt")))
|
||||
(.renameTo
|
||||
(File. (str (File/separator) "docs"))
|
||||
(File. (str (File/separator) "mydocs")))
|
||||
Loading…
Add table
Add a link
Reference in a new issue