title: How to build a dictionary from contents of a csv file in kdb?
body: <p>I have a csv file with contents like below</p>
  
  <pre><code>source,address,table,tableName,sym,symSet
  source_one,addr1:port1:id1:pass1,table_one,tableName1,syms_one,SYM1 SYM2 SYM3
  source_two,addr2:port2:id2:pass2,table_two,tableName2,syms_two,SYM21 SYM22 SYM23
  </code></pre>
  
  <p>My code to load a csv into a table is as below</p>
  
  <pre><code>table:("******";enlist ",") 0: `sourceFileName.csv
  </code></pre>
  
  <p>I want to create a dictionary out of contents of 'table' in the below format</p>
  
  <pre><code>source_one|addr1:port1:id1:pass1
  table_one|tableName1
  syms_one|SYM1 SYM2 SYM3
  source_two|addr2:port2:id2:pass2
  table_two|tableName2
  syms_two|SYM21 SYM22 SYM23
  </code></pre>
  
  <p>How do I achieve this?</p>
  
  <p>Thanks!</p>