Create a file: Difference between revisions
Added 11l
Alextretyak (talk | contribs) (Added 11l) |
|||
Line 3:
In this task, the job is to create a new empty file called "output.txt" of size 0 bytes
and an empty directory called "docs". This should be done twice: once "here", i.e. in the current working directory and once in the filesystem root.
=={{header|11l}}==
{{trans|Python}}
<lang 11l>L(directory) [‘/’, ‘./’]
File(directory‘output.txt’, ‘w’) // create /output.txt, then ./output.txt
fs:create_directory(directory‘docs’) // create directory /docs, then ./docs</lang>
=={{header|4DOS Batch}}==
|