How to join string list into one CSV line in VB.NET

1 Answer

0 votes
Imports System
Imports System.Collections.Generic

Public Class Program
    Public Shared Sub Main()
        Dim list = New List(Of String)() From {
            "c#",
            "vb.net",
            "java",
            "c",
            "c++"
        }

        Dim CSVline As String = String.Join(",", list.ToArray())
		
        Console.WriteLine(CSVline)
    End Sub
End Class




' run:
'
' c#,vb.net,java,c,c++
'

 



answered Mar 8, 2023 by avibootz

Related questions

...