title: Using univocity to parse two different csv files and write into new csv file
body: <p>I always use univocity parser in my java program to compare csv files. It works excellent and is much faster.</p>
  
  <p>But the problem is, this time am trying to parse two different large volume csv files with complex values and print the difference in new csv file,</p>
  
  <p>Looking into one of the authors examples I tried to use processFile after reading file1 into list then converting to map, still I get error while parsing.</p>
  
  <p>Below are my sample input and expected output file.</p>
  
  <p>INPUT - file1</p>
  
  <pre><code>"h1","h2","h3","h4","h5"
  "00000","US","9503.00.0089","USA","9503.0089"
  "","EU","9503.00.7000","EUROPEAN UNION","9503.00.7000"
  "#1200","US","5601.22.0010","USA","5601.22.0010"
  "0180691","US","9503.00.0073","USA","9503.00.0073"
  “DRTY01”,”CA”,”9603.01.0088”,”CAN”,”9603.01.0088”
  </code></pre>
  
  <p>INPUT - file2</p>
  
  <pre><code>"h1","h2","h3","h6","h7","h8","h9","h10",h11 
  "018890","US","","2015","101","1","1","All",””
  "00000","US","9503.00.0090","1986","101","1","1","All","9503.00.0090"
  "0180691","US","9503.00.0073","2019","101","1","1","All","9503.00.0073”
  “DRTY01”,”CA”,”9603.01.0087”,”2002”,”102”,”1”,”2”,”CA”, “9603.01.0087”
  </code></pre>
  
  <p>Selecting h1, h2 common values in file1 and file2 then comparing h3 of file1 to h3 of file2 , if both files h3 are not equal then I want to print  “h1”,”h4”,” h10”,”h5”, ”h11”,”h6”,”h7”,”h8”,”h9” to file3</p>
  
  <p>OUTPUT - file3</p>
  
  <pre><code>“h1”,”h4”,” h10”,”h5”, ”h11”,”h6”,”h7”,”h8”,”h9”
  "00000","USA”,”All”,”9503.00.0089”,”9503.00.0090”, "1986","101","1","1"   
  "DRTY01”,“CAN”,”CA”,”9603.01.0088”,“9603.01.0087”,”2002”,”102”,”1”,”2”
  </code></pre>