Plzhelp
0
Q:

read csv java

BufferedReader csvReader = new BufferedReader(new FileReader(pathToCsv));
while ((row = csvReader.readLine()) != null) {
    String[] data = row.split(",");
    // do something with the data
}
csvReader.close();
3
FileReader from = new FileReader("data.txt");
Scanner source = new Scanner(from);
...
int count = source.nextInt();
String str = source.next();
String wholeLine = source.nextLine();
...
from.close();
3

New to Communities?

Join the community