C++ file container (e.g. zip) for easy access -


i have lot of small files need ship application build , want put files archive make copying , redistributing more easy. idea of having them in 1 place need compare md5 of 1 file in case goes wrong.

i'm thinking class can load archive , return list of files within archive , load file memory if need access it.

i searched internet different methods of achieving want , found out zlib , lzma sdk. both didn't appeal me because don't found out how portable zlib , didn't lzma sdk , don't want blow application because of problem. downside zlib don't have c/c++ experience (i'm new c++) explained in manual.

i have add time critical problem. though time implementing simple format tar in way can easy access files within application didn't find time yet.

so i'm searching library allows me access files within archive. i'd glad if point me in right direction here.

thanks in advance, robin.

edit: need archive accessed under linux , windows. sorry didn't mention in beginning.

the answer depends on whether plan modify archive via code after archive built.

if don't need modify it, can use tar - it's handy , simple format. if want compression, can implement tar.gz reader or find library (i believe there available, including open-source ones).

if application needs random access data or needs modify archive, regular tar or zip archives not good. virtual file system such our solfs or codebase file system fit better: virtual file systems suited frequent modifications of storage, while archives target write-once-read-many usage scenarios.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -