Public Function WriteIniSection(ByVal Section As String, ByVal Values() As String, ByVal IniPath As String) As Boolean Dim s As String = "" For Each a As String In Values If a <> "" Then s &= a & ControlChars.NullChar Next s &= ControlChars.NullChar Return WritePrivateProfileSection(Section, s, IniPath) = 0 End Function
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)