title: Reading a pipe delimited file
body: <p>I have the following file named ght.txt in my c: and it contains the following data</p>
  
  <pre><code>Id|ytr|yts
  1|W|T
  2|W|T
  3|W|T
  </code></pre>
  
  <p>Now the thing is that positions of this columns (Id|ytr|yts) is also not in order means they can be reshuffled also..for ex</p>
  
  <pre><code>Id|ytr|dgfj|fhfjk|fgrt|yts
  </code></pre>
  
  <p>or they can be as ..</p>
  
  <pre><code>Id|wer|ytr|weg|yts
  </code></pre>
  
  <p>Now please advise how can I read this file through buffered writer in java and also the logic to catch only these column(Id|ytr|yts) as I need to first catch these columns and then need to store the value of the columns in a map. </p>
  
  <p>Please advise</p>