Merge: Reworked crypto.nit to introduce basic XOR attacks
[nit.git] / benchmarks / csv / scripts / JavaCSV.java
1 package scripts;
2
3 import java.io.File;
4 import java.util.List;
5 import java.nio.charset.Charset;
6 import org.apache.commons.csv.*;
7
8 class JavaCSV {
9 public static void main(String[] args) {
10 try {
11 File csvData = new File(args[0]);
12 CSVParser parser = CSVParser.parse(csvData, Charset.forName("UTF-8"), CSVFormat.RFC4180);
13 List<CSVRecord> r = parser.getRecords();
14 } catch(Exception e) {
15 System.err.println("Major fail");
16 }
17 }
18 }