filesDir = _files.getFilesDir() def fn1(fileBuilder): fileBuilder.setPath(filesDir, "tmp/aaa.txt") file = _files.buildFile(fn1) file.writeText("hello world", "UTF-8") _console.log(file.readLines("UTF-8")) file.delete()