title: Java OpenCSV Split by pipe limited
body: <p>I am having an issue when reading from a file using comma split. I can read the file like this: </p>
  
  <pre><code>CSVReader reader = new CSVReader(new FileReader(FileName), '|' , '"' , 0);
  </code></pre>
  
  <p>Then when I want to get the individual values, I can read them like this: </p>
  
  <pre><code>String[] record = rowString.split(","); 
  </code></pre>
  
  <p>The issue of course is that comma is not the most reliable way to read a file. Is there any way to split the string by pipe delimited like this?: </p>
  
  <pre><code>String[] record = rowString.split("\\|"); 
  </code></pre>
  
  <p>This is how I am reading the lines, it may possibly be in this code where I need to make such adjustment? </p>
  
  <pre><code> for(String[] row : allRows){ 
     String rowString = Arrays.toString(row).toString(); 
     String[] record = rowString.split(","); 
   }
  </code></pre>
  
  <p>Thank you. </p>