Which of the following reads the textual contents of a URL and returns as a string?
(a) spawn(f);
(b) load(filename,…);
(c) readFile(file);
(d) readUrl(url);
I got this question by my school teacher while I was bunking the class.
My doubt stems from Scripting Java with Rhino in chapter Server-Side and Client-Side Scripting of JavaScript