Updating Zip archives?

Just starting out? Need help? Post your questions and find answers here.
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Updating Zip archives?

Post by davido »

I have some Zip archives that contain up to 1000 jpegs and a text file.
I would like to update the text file from time-to-time.
Can anyone suggest the best way of doing this with PB code?
DE AA EB
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Re: Updating Zip archives?

Post by GPI »

Write the textfile in a seperate file. Changing files in a zip is always difficult, because the format is not designed for something like this.
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: Updating Zip archives?

Post by davido »

@GPI,
Thank you for your sound advice. :D
DE AA EB
collectordave
Addict
Addict
Posts: 1310
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

Re: Updating Zip archives?

Post by collectordave »

The only way i know is to unzip the zip make your changes and then rezip.

To help I have written a quick prog available here http://www.purebasic.fr/english/viewtop ... &hilit=zip
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: Updating Zip archives?

Post by davido »

@collectordave,

That's extremely kind of you.
I'll look forward to trying it, later. :D
DE AA EB
Post Reply