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.

// create file
local(f) = file
handle => { #f->close }
#f->openWriteOnly('output.txt')
 
// make directory, just like a file
local(d = dir('docs'))
#d->create
 
// create file in root file system (requires permissions at user OS level)
local(f) = file
handle => { #f->close }
#f->openWriteOnly('//output.txt')
 
// create directory in root file system (requires permissions at user OS level)
local(d = dir('//docs'))
#d->create