1
2
3
4 package integrationTest.issue2153020;
5
6 import java.io.FileReader;
7 import java.io.IOException;
8
9 import au.com.bytecode.opencsv.CSVReader;
10
11
12
13
14
15 public class DataReader
16 {
17 private static final String ADDRESS_FILE="test/integrationTest/issue2153020/Sample.csv";
18
19
20
21
22
23 public static void main(String[] args) throws IOException
24 {
25
26 CSVReader reader = new CSVReader(new FileReader(ADDRESS_FILE));
27 String [] nextLine;
28 while ((nextLine = reader.readNext()) != null) {
29 int numLines = nextLine.length;
30 System.out.println("Number of Data Items: " + numLines);
31 for (int i = 0; i < numLines; i++)
32 {
33 System.out.println(" nextLine[" + i + "]: " + nextLine[i]);
34 }
35 }
36
37 }
38
39 }