12 lines
404 B
Plaintext
12 lines
404 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(input.txt)
|
|
fn.println([[io]]::fp.getSize($file1))
|
|
[[io]]::fp.closeFile($file1) # Remember to close files
|
|
|
|
$file2 = [[io]]::fp.openFile(/input.txt)
|
|
fn.println([[io]]::fp.getSize($file2))
|
|
[[io]]::fp.closeFile($file2)
|