LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-03-2008, 07:24 PM   #1
mkrems
Member
 
Registered: Jan 2008
Distribution: Ubuntu
Posts: 31

Rep: Reputation: 15
archiving files in c++


can one make .tgz files in a c++ program itself or must it be done at the shell level? if so, how is it done?
 
Old 04-03-2008, 10:06 PM   #2
prad77
Member
 
Registered: Mar 2008
Posts: 101

Rep: Reputation: 15
You have to make use of system or exec commands to execute tar and then gzip.

I dont think c++ has seperate utility or library for tar/gzip.
Experts, pls correct me if i am wrong.

Gentoo

Last edited by prad77; 04-17-2008 at 04:41 AM.
 
Old 04-03-2008, 10:18 PM   #3
JWPurple
Member
 
Registered: Feb 2008
Posts: 67

Rep: Reputation: 17
If you really have to to it directly from C++ try these (Google search). I think it would be easier with prad77's suggestion.

http://www.destructor.de/libtar/index.htm

http://zlib.net/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Archiving files using a time stamp. HunterColt22 Programming 3 06-11-2007 02:29 AM
archiving rotated log files tjainsworth Linux - Security 4 07-12-2006 02:00 PM
splitting and archiving mail files as per username and dates imagineers7 Linux - Enterprise 1 06-12-2006 05:40 AM
Archiving Email Files ? dolphans1 Mandriva 6 06-15-2005 11:12 AM
What archiving app for Linux will do multiple files of the same name from X? t3gah Linux - Software 3 03-19-2005 05:42 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration