ajarcomputers/src/main/resources/assets/ajarc/bin/cat.js

4 lines
No EOL
118 B
JavaScript

var fileContent = fs.readFile(process.args[0])
fileContent.split("\n").forEach(function (it) {
screen.print(it)
})