13 lines
386 B
Plaintext
13 lines
386 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)
|
|
|
|
$bytes = [[io]]::fp.readBytes($fileIn)
|
|
[[io]]::fp.writeBytes($fileOut, $bytes)
|
|
|
|
[[io]]::fp.closeFile($fileIn)
|
|
[[io]]::fp.closeFile($fileOut)
|