Page 1 of 1

Unpack packed files with Unpackfile()

Posted: Wed Apr 21, 2004 10:14 pm
by omid-xp
1. Packed file by PureBasic is standard format in compressed files ? ( Zip, Rar, Cab , ..... )

2.Why purebasic easy pack files by AddPackFile() but for unpack must use of memory ?

Whay purebasic not have Unpackfile() command ?

Very beginners need to this command for easy unpack files.

It is alone command i have problem with it. :?

Can i see this command in new version of PureBasic ?


Thanks.

Posted: Wed Apr 21, 2004 10:42 pm
by Pupil
check out 'OpenPack()' and 'NextPackFile()' and see if that help, if not i've totaly missunderstood your question..

Posted: Wed Apr 21, 2004 11:38 pm
by GedB
All thats needed is WriteData(MemoryAddress, SizeOfPackFile()).

Re: Unpack packed files with Unpackfile()

Posted: Thu Apr 22, 2004 11:03 am
by omid-xp
omid-xp wrote:1. Packed file by PureBasic is standard format in compressed files ? ( Zip, Rar, Cab , ..... )
????????

For question 2 i search this forums and find just one good and small code for it, but it's not work and see on message " can't read the memory address ..... ".

Have you small code for unpack files ?

Posted: Thu Apr 22, 2004 11:09 am
by GedB
1. Packed file by PureBasic is standard format in compressed files ? ( Zip, Rar, Cab , ..... )
Purebasic uses the JCalG1 algorithm rather than a standard format.

JCalG1 is used because is very quick at expanding, but takes a long time to compress.

More details here: http://www.collakesoftware.com/jcalg1.htm

Posted: Thu Apr 22, 2004 6:13 pm
by Shannara
I too am looking for unpackfile code, I was supprised PB only have 1/2 support for easy file packing and unpacking (only has packfile . hrm)

Anybody have a snippit?

Posted: Thu Apr 22, 2004 8:52 pm
by omid-xp
Thanks GedB.

I want of fred add this new command ( Unpackfile() ) in next version if not please some one give me one small source code for unpack packed files by purebasic.

Very Thanks.

Posted: Sat Apr 24, 2004 11:51 am
by thefool
well, the only thing im not happy with is that the compressed file dosent have the filename included, so it would be easy to extract filenames-

Posted: Sat Apr 24, 2004 10:25 pm
by Wolf
Agree.

Posted: Sun Apr 25, 2004 6:15 pm
by thefool
well i looked at the JaPBe's include pack and noticed a library named PackContainer. I think maybe that does what we want.. Also the lib PackPlus.