std::ofstream o("C:\\Users\\Administrator\\Desktop\\test.tar", std::ofstream::app | std::ofstream::out | std::ofstream::binary);
tar::writer wt(o);
wt.put_file("a.jpg", "C:\\Users\\Administrator\\Desktop\\a.jpg");
wt.finish();
o.close();
如何增加文件夹1下的a.txt文件?
C:\\Users\\Administrator\\Desktop\\1\\a.txt
2022-11-22 21:41:01
4KB
tar打包
1