Sample code for 30+ languages & platforms
Tcl

Reassemble a Previously Split File

Demonstrates how to reassemble a previously split file.

Chilkat Tcl Downloads

Tcl

load ./chilkat.dll

set success 0

set fac [new_CkFileAccess]

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

set partPrefix "hamlet"
set partExtension "spl"
set srcDirPath "."

# Reassembles the original file from hamlet1.spl, hamlet2.spl, ...
set success [CkFileAccess_ReassembleFile $fac $srcDirPath $partPrefix $partExtension $reassembledFilename]

if {$success == 1} then {
    puts "Success."
} else {
    puts [CkFileAccess_lastErrorText $fac]
}


delete_CkFileAccess $fac