c++ library to make tar files [closed]

2020-03-01 07:57发布

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

标签: c++ tar
2条回答
祖国的老花朵
2楼-- · 2020-03-01 08:15

libtar has a C API for GNU tar.

查看更多
家丑人穷心不美
3楼-- · 2020-03-01 08:25

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.

查看更多
登录 后发表回答