title: Reading contents of CSV file
body: <p>I have made a resource reader with some example code from <a href="http://shitmores.blogspot.com/2011/01/android-using-csv-file-as.html" rel="nofollow">here</a>. Here is my code...</p>
  
  <pre><code>public static void ReadFile() {
  
      BufferedReader reader = new BufferedReader(new InputStreamReader(file));
  
      String line;
      try {
          while((line = reader.readLine()) != null){
              String[] values = line.split(",");
  
              Log.d(TAG, String.valueOf(values.toString()));
          }
      } catch (IOException e) {
  
          e.printStackTrace();
      }
  }
  </code></pre>
  
  <p>my file is read onResume using this code...</p>
  
  <pre><code>InputStream file = getResources().openRawResource(R.raw.csvfile);
  </code></pre>
  
  <p>and I think i've got it right but when I use the </p>
  
  <pre><code>Log.d()
  </code></pre>
  
  <p>utility to read the values  in my csv file (as shown above) I get something else instead</p>
  
  <pre><code>10-21 20:38:44.096: DEBUG/input(15223): [Ljava.lang.String;@467bbb20
  10-21 20:38:44.104: DEBUG/input(15223): [Ljava.lang.String;@467bbfd8
  10-21 20:38:44.104: DEBUG/input(15223): [Ljava.lang.String;@467bc3e0
  10-21 20:38:44.112: DEBUG/input(15223): [Ljava.lang.String;@467bc7e8
  10-21 20:38:44.112: DEBUG/input(15223): [Ljava.lang.String;@467bcbf0
  10-21 20:38:44.112: DEBUG/input(15223): [Ljava.lang.String;@467bcff8
  10-21 20:38:44.112: DEBUG/input(15223): [Ljava.lang.String;@467bd400
  10-21 20:38:44.120: DEBUG/input(15223): [Ljava.lang.String;@467bd808
  10-21 20:38:44.120: DEBUG/input(15223): [Ljava.lang.String;@467bdc10
  10-21 20:38:44.120: DEBUG/input(15223): [Ljava.lang.String;@467bde60
  </code></pre>
  
  <p>now I don't know if you can return straight from a BufferReader like this but there seems to be considerably less values here than there are in my csv file.  Here is my csv file</p>
  
  <pre><code>001, 000, 000, 000, 000, 000,
  001, 000, 000, 000, 000, 000,
  001, 000, 000, 000, 000, 000,
  001, 000, 000, 000, 000, 000,
  001, 000, 000, 000, 000, 000,
  001, 000, 000, 000, 000, 000,
  001, 000, 000, 000, 000, 000,
  001, 000, 000, 000, 000, 000,
  001, 000, 000, 000, 000, 000
  </code></pre>
  
  <p>pretty empty i know but am I getting this right or should my log tags return some readable data, if so what am I doing wrong here. </p>