Completed reading in the CSV #1
@ -10,11 +10,12 @@ public class Matrix {
|
|||||||
|
|
||||||
public String[] importCSV(String file) {
|
public String[] importCSV(String file) {
|
||||||
String[] result = new String[100];
|
String[] result = new String[100];
|
||||||
|
String line;
|
||||||
try {
|
try {
|
||||||
BufferedReader br = new BufferedReader(new FileReader(file));
|
BufferedReader br = new BufferedReader(new FileReader(file));
|
||||||
|
|
||||||
while (br.readLine() != null) {
|
while ((line = br.readLine()) != null) {
|
||||||
result = br.readLine().trim().split(";");
|
result = line.trim().split(";");
|
||||||
}
|
}
|
||||||
|
|
||||||
br.close();
|
br.close();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user