Rar Archive

BlitzMax Forums/BlitzMax Programming/Rar Archive

Do anyone know a library (C could be suitable, as well) to modify (expecially to add files to) rar archives?

If Rar is installed on the user's system, you could just call it with the appropriate parameters. You wouldn't be able to add files to a rar file in memory, though (such as 'IncBin'd archives).

Russell

Yes, I thought about this option, however I'd have preferred doing all the stuff in memory for speed reasons.
Thank you for your reply.

I found this:

http://www.unrarlib.org/

But it can only be used for decompression :(

Does it have to be a rar file? Because there already is a zip library out there for BMax, and it works well. (see http://www.gprogs.com/forum/viewtopic.php?id=28 for the download and information, etc)

Russell

I need to do that on both zip and rar archives.
I've already found ZipEngine, but I need to do it on rars, now.
I've also already found unrarlib, but it has just a few functions, and just read only.

did you try 7zip as well?

Does it work with rar files too?
And is it a library or an archive software?

yes 7 zip is able to open zip, 7z, rar

7zip is an open source library / algorithm
but there is a download for those who only want to use it as a packer which has precompiled GUI and dll included

I see.
I will have a look.
Thanks.