Dart
Dart
Reassemble a Previously Split File
Demonstrates how to reassemble a previously split file.Chilkat Dart Downloads
import 'package:chilkat/chilkat.dart';
void main() {
final fac = CkFileAccess();
// Any type of file may be reassembled. It doesn't matter if it's
// a binary file or a text file.
final reassembledFilename = 'hamlet2.xml';
final partPrefix = 'hamlet';
final partExtension = 'spl';
final srcDirPath = '.';
// Reassembles the original file from hamlet1.spl, hamlet2.spl, ...
try {
fac.reassembleFile(srcDirPath, partPrefix, partExtension, reassembledFilename);
print('Success.');
} on ChilkatException catch (e) {
print(e.lastErrorText);
}
}