Lianja
Lianja
Reassemble a Previously Split File
Demonstrates how to reassemble a previously split file.Chilkat Lianja Downloads
llSuccess = .F.
loFac = createobject("CkFileAccess")
// Any type of file may be reassembled. It doesn't matter if it's
// a binary file or a text file.
lcReassembledFilename = "hamlet2.xml"
lcPartPrefix = "hamlet"
lcPartExtension = "spl"
lcSrcDirPath = "."
// Reassembles the original file from hamlet1.spl, hamlet2.spl, ...
llSuccess = loFac.ReassembleFile(lcSrcDirPath,lcPartPrefix,lcPartExtension,lcReassembledFilename)
if (llSuccess = .T.) then
? "Success."
else
? loFac.LastErrorText
endif
release loFac