jdk/test/javax/script/Test7.js
author duke
Wed, 05 Jul 2017 17:52:05 +0200
changeset 10620 9df40a1578ef
parent 2 90ce3da70b43
child 16038 de84354579d3
permissions -rw-r--r--
Merge

//this is the first line of Test7.js
var filename;
importPackage(java.io);
importPackage(java);
var f = new File(filename);
var r = new BufferedReader(new InputStreamReader(new FileInputStream(f)));

var firstLine = r.readLine() + '';
print(firstLine);