Page 1 of 1

Get filenames in PAK file

Posted: Wed May 30, 2007 2:04 am
by GeoTrail
I can't seem to figure this out.

How can I get the filenames of the files in a PAK file created with CreatePack() ?

I'm working on a backup feature in a program and now I'm on the restore database part and needs to be able to unpack an unknown number of files.

Posted: Wed May 30, 2007 2:09 am
by Heathen
I haven't used those functions, but couldn't you just add the names to the end of the pack file?

Posted: Wed May 30, 2007 2:11 am
by GeoTrail
Yeah, I was thinking the same thing just now.
But there should be a way to do this, don't you think? A feature like this should be there somewhere without the need for workarounds.

Posted: Wed May 30, 2007 2:13 am
by Heathen
GeoTrail wrote:Yeah, I was thinking the same thing just now.
But there should be a way to do this, don't you think? A feature like this should be there somewhere without the need for workarounds.
yeah, would be usefull

Posted: Wed May 30, 2007 5:21 am
by Inf0Byt3
Hi guys, I made some routines for this a while ago. Chack this link out:
http://www.purebasic.fr/english/viewtopic.php?t=20904

Posted: Wed May 30, 2007 12:10 pm
by GeoTrail
Thanks for the link :)
I'll have a look at this later today :)