Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 14th, 2013  |  syntax: None  |  size: 0.43 KB  |  views: 25  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. String next[] = {};
  2.         List<String[]> list = new ArrayList<String[]>();
  3.  
  4.  
  5.  
  6.    try {
  7.         CSVReader reader = new CSVReader(new InputStreamReader(getAssets().open("test.csv")));
  8.         for(;;) {
  9.             next = reader.readNext();
  10.             if(next != null) {
  11.                 list.add(next);
  12.             } else {
  13.                 break;
  14.             }
  15.         }
  16.     } catch (IOException e) {
  17.         e.printStackTrace();
  18.     }
clone this paste RAW Paste Data