当前位置: 技术问答>linux和unix
有没有什么函数库能够将一个目录打包成一个文件?
来源: 互联网 发布时间:2016-04-16
本文导语: 不想用调用外部tar命令的方法,希望用相应的函数来完成! | 有外部命令可以调为啥不调呢?popen(), system()都可以啊 | PUPUPUPUP UPUPUPU PUPUP UPUPUPUP UPUP UPUPUPUPUPUP UPUPUPU PUPUPUP...
不想用调用外部tar命令的方法,希望用相应的函数来完成!
|
有外部命令可以调为啥不调呢?popen(), system()都可以啊
|
PUPUPUPUP UPUPUPU PUPUP UPUPUPUP UPUP UPUPUPUPUPUP UPUPUPU PUPUPUPU PUPUPU PUPUPU
PUPUPUPUP UPUPUPU PUPUP UPUPUPUP UPUP UPUPUPUPUPUP UPUPUPU PUPUPUPU PUPUPU PUPUPU
PUPUPUPUP UPUPUPU PUPUP UPUPUPUP UPUP UPUPUPUPUPUP UPUPUPU PUPUPUPU PUPUPU PUPUPU
PUPUPUPUP UPUPUPU PUPUP UPUPUPUP UPUP UPUPUPUPUPUP UPUPUPU PUPUPUPU PUPUPU PUPUPU
没人了 都上月亮上去了????
PUPUPUPUP UPUPUPU PUPUP UPUPUPUP UPUP UPUPUPUPUPUP UPUPUPU PUPUPUPU PUPUPU PUPUPU
PUPUPUPUP UPUPUPU PUPUP UPUPUPUP UPUP UPUPUPUPUPUP UPUPUPU PUPUPUPU PUPUPU PUPUPU
PUPUPUPUP UPUPUPU PUPUP UPUPUPUP UPUP UPUPUPUPUPUP UPUPUPU PUPUPUPU PUPUPU PUPUPU
PUPUPUPUP UPUPUPU PUPUP UPUPUPUP UPUP UPUPUPUPUPUP UPUPUPU PUPUPUPU PUPUPU PUPUPU
PUPUPUPUP UPUPUPU PUPUP UPUPUPUP UPUP UPUPUPUPUPUP UPUPUPU PUPUPUPU PUPUPU PUPUPU
PUPUPUPUP UPUPUPU PUPUP UPUPUPUP UPUP UPUPUPUPUPUP UPUPUPU PUPUPUPU PUPUPU PUPUPU
PUPUPUPUP UPUPUPU PUPUP UPUPUPUP UPUP UPUPUPUPUPUP UPUPUPU PUPUPUPU PUPUPU PUPUPU
没人了 都上月亮上去了????
PUPUPUPUP UPUPUPU PUPUP UPUPUPUP UPUP UPUPUPUPUPUP UPUPUPU PUPUPUPU PUPUPU PUPUPU
PUPUPUPUP UPUPUPU PUPUP UPUPUPUP UPUP UPUPUPUPUPUP UPUPUPU PUPUPUPU PUPUPU PUPUPU
PUPUPUPUP UPUPUPU PUPUP UPUPUPUP UPUP UPUPUPUPUPUP UPUPUPU PUPUPUPU PUPUPU PUPUPU
PUPUPUPUP UPUPUPU PUPUP UPUPUPUP UPUP UPUPUPUPUPUP UPUPUPU PUPUPUPU PUPUPU PUPUPU
|
楼主想直接在程序调用一个C库函数来实现此功能?~
|
fopen吧。
研究出来发我一份。
谢谢
typ_adam@sina.com
研究出来发我一份。
谢谢
typ_adam@sina.com
|
能不能问一下,为什么tar不能满足你的需要呢?
不知道你用什么开发语言?虽然具体实现在各语言中有所不同,但总的来说,你可以在程序中打开一个目录,读出所有文件句柄,再把其内容写到新文件中去。不过比较麻烦些。
|
有意义吗?