Is it possible with Rhino Server-side Javascript to locate and read the contents of an arbitrary local file?
Sure is.
from interpreter:
js> readFile('./tmp.txt');
or in code:
var filesz = readFile('./tmp.txt');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With