A line of text is terminated by a carriage-return character ('\r'
), a newline character ('\n'
), a carriage-return character immediately followed by a newline character, or the end of the file. Line-terminating characters are discarded and are not included as part of the string returned.
This method blocks until a newline character is read, a carriage return and the byte following it are read (to see if it is a newline), the end of the file is reached, or an exception is thrown. @return the next line of text from this file, or null if endof file is encountered before even one byte is read. @exception IOException if an I/O error occurs.
|
|