title: How to create a csv file from List<String[]>
body: <p>Can anyone help me to create a csv file from List, my scenario is, i have a multi dimensional values like below in a List</p>
  
  <pre><code>List&lt;string[]&gt; lst = new List&lt;string[]&gt;();
  lst= csv1.ToList();
  </code></pre>
  
  <p>lst contains the values like,</p>
  
  <pre><code>lst[0] = {string[53]}
  lst[1] = {string[53]}
  lst[2] = {string[53]}
  lst[3] = {string[53]}
  lst[4] = {string[53]}
  </code></pre>
  
  <p>and string[53] contains the values like</p>
  
  <pre><code>lst[0]
      string[0] = "abc"
      string[1] = "def"
      string[2] = "ghi"
      string[3] = "jkl"
      string[4] = "mno"
      ...
  lst[1]
      string[0] = "123"
      string[1] = "456"
      string[2] = "789"
      string[3] = "10"
      string[4] = "11"
      ...
  </code></pre>
  
  <p>I just wanted to write this multi-dimensional list to csv file as each item in lst[] to rows in csv and each item in string[] to columns such that the final output in my csv is</p>
  
  <pre><code>abc,def,ghi,jkl,mno
  123,456,789,10,11
  </code></pre>
  
  <p>Any help would be really appreciated.</p>