使用简单:支持文件,字符串等操作std::ofstreamo(info.TarPath,std::ofstream::app|std::ofstream::binary);tar::writerwt(o);wt.put_file("test_folder\\test\\targetver.h");wt.finish();o.close();