// retoor <retoor@molodetz.nl>
import "pathlib" for Path
var dir = Path.new("/tmp/wren_pathlib_test_rw")
if (!dir.exists()) dir.mkdir()
var f = dir / "test.txt"
f.writeText("hello pathlib")
System.print(f.readText()) // expect: hello pathlib
System.print(f.exists()) // expect: true
System.print(f.isFile()) // expect: true
f.unlink()
System.print(f.exists()) // expect: false
dir.rmdir()