B4X
B4X
Reassemble a Previously Split File
Demonstrates how to reassemble a previously split file.Chilkat B4X Downloads
Dim success As Boolean = False
Dim fac As ChilkatFileAccess
fac.Initialize
' 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
Log("Success.")
Else
Log(fac.LastErrorText)
End If