简体   繁体   中英

ARJ library in .NET (C#)

Is there any open source/free library in .NET (C#) for processing arj files. I need to compress files in arj.

I have done some basic search on Google, but cannot find any!

7zip包装器 ,但仅允许解压缩ARJ。

If you don't find the library that will let you do this, you can dig in the file format specification:

http://www.fileformat.info/format/arj/corion.htm

then I'm sure you'll find .Net libraries for the compression methods that this file format can use.

Also, after a quick look at it, I think it won't be much work to implement the format

According to the Wikipedia page , there is an opensource version of it. You could just run that from the command line, I think.

For unpacking I did my own user friendly wrapper for 7zip: https://github.com/adoconnection/SevenZipExtractor

using (ArchiveFile archiveFile = new ArchiveFile(@"Archive.ARJ"))
{
    foreach (Entry entry in archiveFile.Entries)
    {
        Console.WriteLine(entry.FileName);

        // extract to file
        entry.Extract(entry.FileName);

        // extract to stream
        MemoryStream memoryStream = new MemoryStream();
        entry.Extract(memoryStream);
    }
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM