Get filenames in PAK file

Just starting out? Need help? Post your questions and find answers here.
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Get filenames in PAK file

Post 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.
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Heathen
Enthusiast
Enthusiast
Posts: 498
Joined: Tue Sep 27, 2005 6:54 pm
Location: At my pc coding..

Post by Heathen »

I haven't used those functions, but couldn't you just add the names to the end of the pack file?
I love Purebasic.
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post 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.
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Heathen
Enthusiast
Enthusiast
Posts: 498
Joined: Tue Sep 27, 2005 6:54 pm
Location: At my pc coding..

Post 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
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post 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
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Thanks for the link :)
I'll have a look at this later today :)
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Post Reply