Global.helma.File.readln ()
Sourcecode in /home/hannes/helma/modules/helma/File.js:
105:   this.readln = function() {
106:         if (!self.isOpened()) {
107:            setError(new IllegalStateException("File not opened"));
108:            return null;
109:         }
110:         if (!(readerWriter instanceof BufferedReader)) {
111:            setError(new IllegalStateException("File not opened for reading"));
112:            return null;
113:         }
114:        if (atEOF) {
115:           setError(new EOFException());
116:           return null;
117:        }
118:        if (lastLine != null) {
119:           var line = lastLine;
120:           lastLine = null;
121:           return line;
122:        }
123:        var reader = readerWriter;
124:        // Here lastLine is null, return a new line
125:        try {
126:           var line = readerWriter.readLine();
127:           if (line == null) {
128:              atEOF = true;
129:              setError(new EOFException());
130:           }
131:           return line;
132:        } catch (e) {
133:           setError(e);
134:           return null;
135:        }
136:        return;
137:     }