Unicode C++
Unicode C++
Reassemble a Previously Split File
Demonstrates how to reassemble a previously split file.Chilkat Unicode C++ Downloads
#include <CkFileAccessW.h>
void ChilkatSample(void)
{
bool success = false;
CkFileAccessW fac;
// Any type of file may be reassembled. It doesn't matter if it's
// a binary file or a text file.
const wchar_t *reassembledFilename = L"hamlet2.xml";
const wchar_t *partPrefix = L"hamlet";
const wchar_t *partExtension = L"spl";
const wchar_t *srcDirPath = L".";
// Reassembles the original file from hamlet1.spl, hamlet2.spl, ...
success = fac.ReassembleFile(srcDirPath,partPrefix,partExtension,reassembledFilename);
if (success == true) {
wprintf(L"Success.\n");
}
else {
wprintf(L"%s\n",fac.lastErrorText());
}
}