author | prr |
Thu, 18 Dec 2014 10:45:45 -0800 | |
changeset 29908 | 83e2c403fefd |
parent 16038 | de84354579d3 |
permissions | -rw-r--r-- |
//this is the first line of Test7.js var filename; try { load("nashorn:mozilla_compat.js"); } catch (e) { //ignored } 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);