In vb6 we could simply do Join(sourcearray, delimiter)

But I cant find the equivalent in vb.net, Is there?
----

Also, I'm writing a FireFox proxy changer, and Im looking for input on how I could improve my code:


VB Code:
  1. Option Strict On
  2. Option Explicit On
  3.  
  4. Public Class Form1
  5.  
  6.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  7.         Dim Path As String = String.Empty
  8.         Dim js_Prefs() As String
  9.         Dim RndProxy As New Random
  10.         Dim Proxies() As String = (My.Computer.FileSystem.ReadAllText(Application.StartupPath & "\Proxies.txt")).Split(CChar(Environment.NewLine))
  11.         For Each FxUserName As String In IO.Directory.GetDirectories("C:\Documents and Settings\" & Environment.UserName & "\Application Data\Mozilla\Firefox\Profiles\")
  12.             Path = FxUserName
  13.         Next
  14.         js_Prefs = My.Computer.FileSystem.ReadAllText(Path & "\prefs.js").Split(CChar(Environment.NewLine))
  15.         Dim IP As String = Proxies(RndProxy.Next(0, Proxies.GetUpperBound(0))).Trim
  16.         For I As Int32 = 0 To js_Prefs.GetUpperBound(0)
  17.             If js_Prefs(I).Contains("network.proxy.http_port") Then
  18.                 js_Prefs(I) = js_Prefs(I).Substring(1, js_Prefs(I).LastIndexOf(",") + 1)
  19.                 js_Prefs(I) += IP.Substring(IP.IndexOf(":") + 1) & ");"
  20.                 Exit For
  21.             ElseIf js_Prefs(I).Contains("network.proxy.http") Then
  22.                 js_Prefs(I) = js_Prefs(I).Substring(1, js_Prefs(I).IndexOf(",") + 1)
  23.                 js_Prefs(I) += Convert.ToChar(34) & IP.Substring(1, IP.IndexOf(":") - 1) & Convert.ToChar(34) & ");"
  24.             End If
  25.         Next
  26.     End Sub
  27.  
  28. End Class