13 lines
382 B
Plaintext
13 lines
382 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>)
|
|
|
|
$fileIn = [[io]]::fp.openFile(input.txt)
|
|
$fileOut = [[io]]::fp.openFile(output.txt)
|
|
|
|
$text = [[io]]::fp.readFile($fileIn)
|
|
[[io]]::fp.writeFile($fileOut, $text)
|
|
|
|
[[io]]::fp.closeFile($fileIn)
|
|
[[io]]::fp.closeFile($fileOut)
|