c ++库来制作tar文件 [英] c++ library to make tar files
问题描述
有没有可用的c ++库可以创建tar文件?我有文本流,我需要分成几个部分,并制作小文件,应该都在一个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 !
注意,
Lalith
Regards, Lalith
推荐答案
Google快速搜索会显示 Chilkat C / C ++ TAR库 。其使用示例如下: Chilkat C ++示例:创建TAR存档
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
另一个可能的选项是 libtar (请注意,它是一个C库)。
Another possible option is libtar (note, however, that it is a C library).
当然,你可以读取TAR文件规范(所有你需要的是通过维基百科)并实现您自己的库。看起来有人已经执行过这里 ,可用来源。
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.
这篇关于c ++库来制作tar文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!