I am using an implantation of Rhino Java and trying to read a file.
Several examples on-line show looping through the file line by line and appending each until the readLine() returns null, then you should have the entire file in you string that you were appending.
The behavior that I am observing is that the readLine() method is executed once and it returns the entire file ?
What is going on ?
I can search the string that it returns and I find the \r\n's in the proper locations ?
var reader = new java.io.FileReader(file);
var bReadr = new java.io.BufferedReader(reader);
var sb = new java.lang.StringBuilder;
while ((sLine = bReadr.readLine()) != null)
sb.append(sLine + "\n");