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.

 
use IO;
 
bundle Default {
  class FileExample {
    function : Main(args : String[]) ~ Nil {
      file := FileWriter->New("output.txt");
      file->Close();
 
      file := FileWriter->New("/output.txt");
      file->Close();
 
      Directory->Create("docs");
      Directory->Create("/docs");
    }
  }
}
 