This commit is contained in:
kenfl 2025-03-19 10:54:44 +01:00
commit 4b123e1640
1 changed files with 2 additions and 2 deletions

View File

@ -20,9 +20,9 @@ public class ListeAvis {
br.readLine(); // Ignore l'en-tête br.readLine(); // Ignore l'en-tête
while ((ligne = br.readLine()) != null) { while ((ligne = br.readLine()) != null) {
String[] valeurs = ligne.split(";", 4); // Séparation avec ";" String[] valeurs = ligne.split(";", 4);
// Vérifie que la ligne contient exactement 4 colonnes
if (valeurs.length != 4) { if (valeurs.length != 4) {
System.err.println("Ligne ignorée (format incorrect) : " + ligne); System.err.println("Ligne ignorée (format incorrect) : " + ligne);
continue; continue;