16 lines
457 B
Plaintext
16 lines
457 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>)
|
|
|
|
$file = [[io]]::fp.openFile(input.txt)
|
|
|
|
$modTime = [[io]]::fp.getModificationDate($file)
|
|
fn.println(Mod Time: $modTime)
|
|
|
|
[[io]]::fp.setModificationDate($file, fn.currentTimeMillis())
|
|
|
|
$modTime = [[io]]::fp.getModificationDate($file)
|
|
fn.println(Mod Time now: $modTime)
|
|
|
|
[[io]]::fp.closeFile($file)
|