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
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.
libtar has a C API for GNU tar.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With