title: openCSV parse individual columns
body: <p>I wrote a script parsing a .csv file in groovy using tokenize, which ended up not doing exactly what I needed, I am trying to use the openCSV library but I am unsure as to how I can parse out individual columns. here is my code so far: </p>
  
  <pre><code>List&lt;String[]&gt; rows = new CSVReader(
      new InputStreamReader(getClass().classLoader.getResourceAsStream(inputFileString)))
          .readAll()
  
          rows.each { row -&gt;
              row.each { it -&gt;
                  println it
              }
          }
  </code></pre>
  
  <p>and here is my input data:</p>
  
  <pre><code>1,"unknown","positive","full message","I love it."
  </code></pre>
  
  <p>So what I am trying to figure out is how to print select columns in said row. Also thanks in advance, I am trying to get my head around groovy/java, I come from  a Ruby background.</p>