1.04.26-later #7
@@ -2,11 +2,13 @@ package ecoparasite.input;
|
|||||||
|
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.lang.reflect.Array;
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
import java.nio.file.Files;
|
import java.nio.file.Files;
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
import java.nio.file.Paths;
|
import java.nio.file.Paths;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -93,7 +95,7 @@ public class InputFactory {
|
|||||||
// Lecture des autres lignes.
|
// Lecture des autres lignes.
|
||||||
try {
|
try {
|
||||||
while ((line = reader.readLine()) != null) {
|
while ((line = reader.readLine()) != null) {
|
||||||
rowFields = line.split(separator);
|
rowFields = line.split(separator, -1);
|
||||||
for (int i = 0; i < rowFields.length; i++) {
|
for (int i = 0; i < rowFields.length; i++) {
|
||||||
ArrayList<String> element = data.get(i);
|
ArrayList<String> element = data.get(i);
|
||||||
element.add(rowFields[i]);
|
element.add(rowFields[i]);
|
||||||
|
|||||||
Reference in New Issue
Block a user