Sample code for 30+ languages & platforms
VB.NET

Reassemble a Previously Split File

Demonstrates how to reassemble a previously split file.

Chilkat VB.NET Downloads

VB.NET
Dim success As Boolean = False

Dim fac As New Chilkat.FileAccess

' Any type of file may be reassembled.  It doesn't matter if it's
' a binary file or a text file.
Dim reassembledFilename As String = "hamlet2.xml"

Dim partPrefix As String = "hamlet"
Dim partExtension As String = "spl"
Dim srcDirPath As String = "."

' Reassembles the original file from hamlet1.spl, hamlet2.spl, ...
success = fac.ReassembleFile(srcDirPath,partPrefix,partExtension,reassembledFilename)

If (success = True) Then
    Debug.WriteLine("Success.")
Else
    Debug.WriteLine(fac.LastErrorText)
End If