PDA

View Full Version : [SOLVED] [C++] - load files from archive?



Ferrat
October 26th, 2008, 01:04 PM
As the topic says I want to load files from an archive, doesn't really matter what archive typ and no compression just want more or less a database where I can sort the stuff.

I want to load stuff like sprites, scripts etc and I would prefer not to have then just laying about in folders, so far I've only found stuff on fstream but from what I've found I haven't found a way to do what I want.

cl333r
October 26th, 2008, 04:13 PM
I think what you need is actually a lightweight database, I would recomment SQLite (Firefox uses it as well):
http://www.sqlite.org/
To the right there's a menu you'll find instructions for people programming in C++.

Ferrat
October 26th, 2008, 05:41 PM
Ah thank you :), will look in to it how ever can it archive files like images and not just raw data?

On my mobile now so cant check.

cl333r
October 26th, 2008, 06:29 PM
Yes, it supports the BLOB type, which is how people store binary files, such as images, images are raw data anyway.

Ferrat
October 26th, 2008, 07:11 PM
ah thx :)