20 lines
553 B
Plaintext
20 lines
553 B
Plaintext
# Load the IO module
|
|
# Replace "<pathToIO.lm>" with the location where the io.lm Lang module was installed to without "<" and ">"
|
|
ln.loadModule(<pathToIO.lm>)
|
|
|
|
$file1 = [[io]]::fp.openFile(output.txt)
|
|
[[io]]::fp.createFile($file1)
|
|
[[io]]::fp.closeFile($file1)
|
|
|
|
$file2 = [[io]]::fp.openFile(/output.txt)
|
|
[[io]]::fp.createFile($file2)
|
|
[[io]]::fp.closeFile($file2)
|
|
|
|
$dir1 = [[io]]::fp.openFile(docs)
|
|
[[io]]::fp.makeDirectory($dir1)
|
|
[[io]]::fp.closeFile($dir1)
|
|
|
|
$dir2 = [[io]]::fp.openFile(/docs)
|
|
[[io]]::fp.makeDirectory($dir2)
|
|
[[io]]::fp.closeFile($dir2)
|