Read a single line from the file. Implements a JavaScript function that reads the next line from the file. Line terminators are not included in the returned string. @return the next line from the file as a string, or null if end of file is reached @throws IOException if an error occurred while
()
| 152 | * object, or if the file cannot be read |
| 153 | */ |
| 154 | @JSFunction |
| 155 | public String readLine() throws IOException { |
| 156 | return getReader().readLine(); |
| 157 | } |
| 158 | |
| 159 | /** |
| 160 | * Read a single character from the file. |