View Javadoc

1   /**
2    * 
3    */
4   package integrationTest.issue2564366;
5   
6   import java.io.FileReader;
7   import java.io.IOException;
8   
9   import au.com.bytecode.opencsv.CSVReader;
10  
11  /**
12   * @author scott
13   *
14   */
15  public class DataReader
16  {
17  	private static final String ADDRESS_FILE="test/integrationTest/issue2564366/data.csv";
18  
19  	/**
20  	 * @param args
21  	 * @throws IOException 
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  				System.out.println("CompanyName: [" + nextLine[0] + "]\nCompanyNumber: [" + nextLine[1] + "]\nClientName: [" + nextLine[2] + "]");
30  				System.out.println("ClientFirstName: [" + nextLine[3] + "]\nClientLastName: [" + nextLine[4] + "]\nClientId: [" + nextLine[5] + "]");
31  				System.out.println("ClientGroupId: [" + nextLine[6] + "]\nLogon: [" + nextLine[7] + "]\nLogonPW: [" + nextLine[8] + "]");
32  				System.out.println("PublishKey: [" + nextLine[9] + "]\nHiddenKey: [" + nextLine[10] + "]\nPublishEncryptMode: [" + nextLine[11] + "]");
33  				System.out.println("LanFolderId: [" + nextLine[12] + "]\nStaffId: [" + nextLine[13] + "]\n");
34  			}
35  
36  	}
37  
38  }