Java tutorial
import java.io.BufferedReader; import java.io.FileReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new FileReader("thefile.csv")); String line = null; while ((line = br.readLine()) != null) { String[] values = line.split(","); for (String str : values) { System.out.println(str); } } br.close(); } }