Skip to content
/ ArjSharp Public

A quick and (very) dirty implementation of ARJ archive in C#.

Notifications You must be signed in to change notification settings

easis/ArjSharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

ArjSharp

A quick and (very) dirty implementation of ARJ archive in C#.

References

Example

public static void CreateFile(string outputName, string filename, string output)
{
  ArjMainHeader mainHeader = new ArjMainHeader(Path.GetFileName(outputName));

  List<byte> fileData = new List<byte>();
  fileData.AddRange(mainHeader.GetBytes());

  FileInfo f = new FileInfo(filename);
  ArjMainFileHeader fileHeader = new ArjMainFileHeader(f, output);

  fileData.AddRange(fileHeader.GetBytes());

  File.WriteAllBytes(outputName, fileData.ToArray());
}

static void Main(string[] args)
{
  CreateFile("test.arj", @"test.txt", @"test/test.txt");
  //CreateFile("test.arj", @"test.txt", @"C:\C:C:../../AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\test.txt"); does not work :)
}

About

A quick and (very) dirty implementation of ARJ archive in C#.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages