Dal javadoclettura 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.
Ho seguito tipo di testo:
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.
sto leggendo come linee:
while(buffer.readline() != null){
}
Ma, il problema è sta prendendo in considerazione una linea per la stringa upto prima di newline.Ma vorrei prendere in considerazione la riga quando la stringa termina con .
. Come lo farei?