Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

c++ library to make tar files [closed]

Tags:

c++

tar

Is there any c++ library available which can create tar files ? I have stream of text which I need to break into parts and make small files which should all reside in a tar ball !

Regards, Lalith

like image 711
Lalith Avatar asked Jan 27 '11 04:01

Lalith


2 Answers

A quick Google search uncovers the Chilkat C/C++ TAR Library. A sample of its use is available here: Chilkat C++ Examples: Create TAR Archive

Another possible option is libtar (note, however, that it is a C library).

And, of course, you could read the TAR file spec (all of what you need is linked through Wikipedia) and implement your own library. It looks like someone has already done that here, with the source available.

like image 198
Cody Gray Avatar answered Sep 23 '22 12:09

Cody Gray


libtar has a C API for GNU tar.

like image 37
wilhelmtell Avatar answered Sep 22 '22 12:09

wilhelmtell