Objective-C
Objective-C
Reassemble a Previously Split File
Demonstrates how to reassemble a previously split file.Chilkat Objective-C Downloads
#import <CkoFileAccess.h>
#import <NSString.h>
BOOL success = NO;
CkoFileAccess *fac = [[CkoFileAccess alloc] init];
// Any type of file may be reassembled. It doesn't matter if it's
// a binary file or a text file.
NSString *reassembledFilename = @"hamlet2.xml";
NSString *partPrefix = @"hamlet";
NSString *partExtension = @"spl";
NSString *srcDirPath = @".";
// Reassembles the original file from hamlet1.spl, hamlet2.spl, ...
success = [fac ReassembleFile: srcDirPath partPrefix: partPrefix partExtension: partExtension reassembledFilename: reassembledFilename];
if (success == YES) {
NSLog(@"%@",@"Success.");
}
else {
NSLog(@"%@",fac.LastErrorText);
}