Desde el javadoclectura en BufferedReader
public String readLine()
throws IOException
Read a line of text. A line is considered to be terminated by any one of a line feed ('\n'), a carriage return ('\r'), or a carriage return followed immediately by a linefeed.
He siguiente tipo de texto:
Now the earth was formless and empty. Darkness was on the surface
of the deep. God's Spirit was hovering over the surface
of the waters.
estoy leyendo líneas como:
while(buffer.readline() != null){
}
Pero, el problema es que está considerando una línea para cadena hasta antes de nueva línea. Pero me gustaría considerar la línea cuando la cadena termina con .
. ¿Cómo lo haría?