title: Writing information from Combo-box to text file
body: <p>I am trying to right the information from a combobox into a text file so it can be saved. If the information in the combobox is John, Marry, Jack I would like it to appear in the text file like this:</p>
  
  <pre><code>John
  Mary
  Jack
  </code></pre>
  
  <p>The code I currently use give a result of JohnMaryJack in the text file</p>
  
  <pre><code>For Each item As Object In cmbworld.Items
          Dim test As String
          test = item
          sb.AppendFormat("{0}", item)
          Dim FILE_NAME As String = "D:\Documents\test.txt"
          If System.IO.File.Exists(FILE_NAME) = True Then
              Dim objWriter As New System.IO.StreamWriter(FILE_NAME)
              objWriter.Write(test)
              objWriter.WriteLine()
              objWriter.Close()
              MsgBox("Text written to file")
          Else
              MsgBox("File Does Not Exist")
          End If
  
      Next
  </code></pre>
  
  <p>How would I fix this?</p>