title: vb.net save datagridview to text file with delimiter
body: <p>how can i save cell values to text file with delimiter
  i have 9 rows
  and i have this code </p>
  
  <pre><code>Dim newoutputlines As New List(Of String)
  Dim finlines As New List(Of String)
  Dim aas As String = ""
  For x As Integer = 0 To DataGridView1.Rows.Count - 1
      For v As Integer = 0 To 9
      'extracting cell value from 0 to 9 and add it on list
      newoutputlines.Add(DataGridView1.Rows(x).Cells(v).Value)
      Next
     'adding delimiter to list
      aas = String.Join("|", newoutputlines.ToArray())
      finlines.add(ass)
  Next
  IO.File.WriteAllLines(FILE_NAME, finlines.ToArray)
  </code></pre>
  
  <p>then on my text file i want to save like this format</p>
  
  <pre><code>0|1|2|3|4|5|6|7|8|9 'this is from index 0 of gridview
  0|3|0|8|6|5|6|7|8|0 'this is from index 1 of gridview
  6|1|2|5|4|5|6|7|5|59 'this is from index 2 of gridview
  </code></pre>
  
  <p>but im failed
  and the result i've got on my text file is like this</p>
  
  <pre><code>0|1|2|3|4|5|6|7|8|9
  0|1|2|3|4|5|6|7|8|9|0|3|0|8|6|5|6|7|8|0
  0|1|2|3|4|5|6|7|8|9|0|3|0|8|6|5|6|7|8|0|6|1|2|5|4|5|6|7|5|59
  </code></pre>