Completed reading in the CSV #1

Merged
AustrianToast merged 12 commits from Feature/import_csv into dev 2023-03-17 15:31:57 +01:00
Showing only changes of commit 442ee37075 - Show all commits

View File

@ -10,11 +10,12 @@ public class Matrix {
public String[] importCSV(String file) {
String[] result = new String[100];
String line;
try {
BufferedReader br = new BufferedReader(new FileReader(file));
while (br.readLine() != null) {
result = br.readLine().trim().split(";");
while ((line = br.readLine()) != null) {
result = line.trim().split(";");
}
br.close();