Rar Archive

BlitzMax Forums/BlitzMax Programming/Rar Archive

splinux(Posted 2007) [#1]
Do anyone know a library (C could be suitable, as well) to modify (expecially to add files to) rar archives?


Russell(Posted 2007) [#2]
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


splinux(Posted 2007) [#3]
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.


Russell(Posted 2007) [#4]
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


splinux(Posted 2007) [#5]
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.


Dreamora(Posted 2007) [#6]
did you try 7zip as well?


splinux(Posted 2007) [#7]
Does it work with rar files too?
And is it a library or an archive software?


Dreamora(Posted 2007) [#8]
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


splinux(Posted 2007) [#9]
I see.
I will have a look.
Thanks.