Ca fait un moment que je cherche.
J'arrive à lire le fichier,
c'est pour exploiter les données du fichier, il me prend en compte le retour chariot.
J'ai fais plein de recherche sur internet, quand je tape "lire ligne à ligne en java", je retombe sur mes recherches !
Ben t'as mal cherché !! C'est une fonctionnalité très fréquemment demandée... Je te donne juste ça, tu n'as plus qu'à t'en servir :
Extrait Javadoc :
java.io
Class BufferedReader
readLine
public StringreadLine()
throws IOExceptionRead 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.
<dl> * Returns: : <dd>A String containing the contents of the line, not including
any line-termination characters, or null if the end of the
stream has been reached
* Throws: : <dd>