Skip to content

ulwanski/tar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

class Tar()

Class to create TAR archives

Example

#include "tar/tar.h"

int main(int argc,char** argv){

	/* create the tar file */
	Tar tar("archive.tar");
	
	/* Create new files and add to tar archive */
	tar.put("item1.txt", "Hello World 1\n");
	tar.put("item2.txt", "Hello World 2\n");
	tar.put("item3.txt", "Hello World 3\n");

	/* Add existing files to tar archive*/
	tar.putFile("CompressLibs.ilk","CompressLibs.ilk");
	tar.putFile("CompressLibs.pdb","CompressLibs.pdb");
	
	/* Close the tar file*/
	tar.close();

	/* we're done */
	return EXIT_SUCCESS;
}

About

Class to create TAR archives

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages