C# Examples

ChilkatHOMEAndroid™ASPVisual BasicVB.NETC#iOS (IPhone)Objective-CC++CMFCDelphiFoxProJavaPerl
PHP ExtensionPHP ActiveXPythonPowerShellRubySQL ServerVBScript

C# Examples

Bounced Mail
Bz2
Character Encoding
CSV
DKIM / DomainKey
Digital Certificates
Digital Signatures
Email
Email Object
FTP
HTML Conversion
HTTP
IMAP
Encryption
MHT / HTML Email
MIME
POP3
RSA
S/MIME
SMTP
Socket
Spider
SSH
SSH Tunnel
SSH Key
SFTP
Tar Archive
Upload
XML
XMP
Zip Compression


More Examples...
Amazon S3
NTLM
FileAccess
RSS
Atom
String
Byte Array
Self-Extractor
Service
PPMD
Deflate
DH Key Exchange
DSA
Bzip2
LZW

 

 

 

 

 

 

Split File into Chunks

Demonstrates how to split a file into chunks.

Download: Chilkat .NET Assemblies

Chilkat.FileAccess fac = new Chilkat.FileAccess();

bool success;

//  Any type of file may be split.  It doesn't matter if it's
//  a binary file or a text file.
string fileToSplit;
fileToSplit = "hamlet.xml";

string partPrefix;
partPrefix = "hamlet";
string partExtension;
partExtension = "spl";
int maxChunkSize;
maxChunkSize = 50000;
string destDirPath;
destDirPath = ".";

//  Splits hamlet.xml into hamlet1.spl, hamlet2.spl, ...
//  Output files are written to the current working directory.
//  Each chunk will be 50000 bytes except for the last which
//  will be the remainder.
success = fac.SplitFile(fileToSplit,partPrefix,partExtension,maxChunkSize,destDirPath);

if (success == true) {
    textBox1.Text += "Success." + "\r\n";
}
else {
    textBox1.Text += fac.LastErrorText + "\r\n";
}

 

© 2000-2012 Chilkat Software, Inc. All Rights Reserved.

Email Component · XML Parser