Pack a dir´s content

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by merendo.

I´m writing an installation program for a little game I wrote. Now I have a question: How to pack a Directory? Not the Directory, only it´s content? Do I have to use the memory commands, or are there several tricks to use? And after I packed the memory I want to save it into ONE file, so make it ready for unpacking on another system. Thank you, merendo

We always need to hear both sides of the story (by Phil Collins)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Rings.

You have to iterate each file and do:
allocate mem for it, read it into the mem,pack it, write the packed block to disk(One File),free mem, remember sized of packed/Unpacked File.

Sounds horrible ?

wait after easter, i will release the source for xtract., or use xtract
(See http://www.reelmediaproductions.com/pb Snippets-section )

Its a long way to the top if you wanna .....CodeGuru
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by merendo.

Thanks. I didn´t understand all and am going to wait after easter. Have a nice day, merendo

We always need to hear both sides of the story (by Phil Collins)
Post Reply