Chilkat Examples

ChilkatHOMEAndroid™Classic ASPCC++C#Mono C#.NET Core C#C# UWP/WinRTDataFlexDelphi ActiveXDelphi DLLVisual FoxProJavaLianjaMFCObjective-CPerlPHP ActiveXPHP ExtensionPowerBuilderPowerShellPureBasicPythonRubySQL ServerSwiftTclUnicode CUnicode C++Visual Basic 6.0VB.NETVB.NET UWP/WinRTVBScriptXojo PluginNode.jsExcel

C# Examples


ASN.1
Amazon S3
Amazon S3 (new)
Amazon SES
Amazon SNS
Amazon SQS
Async
Azure Cloud Storage
Azure Service Bus
Bounced Email
Box
CSR
CSV
Certificates
Compression
DKIM / DomainKey
DSA
Diffie-Hellman
Digital Signatures
Dropbox
ECC
Email Object
Encryption
FTP
Facebook
Firebase
GeoOp
Google APIs
Google Calendar
Google Cloud Storage
Google Drive
Gzip
HTML-to-XML/Text
HTTP
HTTP Misc
IMAP
JSON
JSON Web Encryption (JWE)
JSON Web Signatures (JWS)
JSON Web Token (JWT)

Java KeyStore (JKS)
MHT / HTML Email
MIME
Microsoft Graph
NTLM
OAuth1
OAuth2
OneDrive
OpenSSL
Outlook
PEM
PFX/P12
POP3
PRNG
PayPal
Peoplevox
QuickBooks
REST
RSA Encryption
SCP
SFTP
SMTP
SSH
SSH Key
SSH Tunnel
SharePoint
Shopify
Socket/SSL/TLS
Spider
Stream
Stripe
SugarCRM
Tar Archive
Twitter
VoiceBase
Walmart
WebSocket
XML
XML Digital Signatures
XMP
Xero
Zip
curl
eBay

 

 

 

(C#) Untar a .tar.Z (.taz) Compressed Archive

Untar a .tar.Z (.taz) compressed archive.

Chilkat .NET Downloads

Chilkat .NET Assemblies

Chilkat for .NET Core

Chilkat for Mono

//  Important: It is helpful to send the contents of the
//  tar.LastErrorText property when requesting support.

//  Untar a .tar archive.
Chilkat.Tar tar = new Chilkat.Tar();

//  Any string automatically begins the 30-day trial.
bool success = tar.UnlockComponent("Anything for 30-day trial");
if (success != true) {
    Console.WriteLine(tar.LastErrorText);
    return;
}

//  Untar into c:/temp/untarDir.  The directory tree(s) contained
//  within the TAR archive will be re-created rooted at this
//  directory.
tar.UntarFromDir = "/Users/chilkat/temp/untarDir";

//  If any filepaths within the Tar archive are absolute,
//  automatically make them relative by removing the first
//  forward or backward slash.  This protects from untarring
//  files to unexpected locations.
tar.NoAbsolutePaths = true;

success = tar.UntarZ("/Users/chilkat/testData/tar/abc123.tar.Z");
if (success != true) {
    Console.WriteLine(tar.LastErrorText);
}
else {
    Console.WriteLine("Success");
}


 

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