tags:

views:

45

answers:

2

Can I access a file/folder within a zip file without extracting it to a temporary file?

This is on a linux system.

Right now, I just need to "read" from the file, but is it possible to "write" to it as well?


Edit 1: Sorry for not clarifying, I was hoping for a command line tool that would allow it to work from any language, but as an alternate, a PHP solution / toolkit is what I would need.

A: 

You don't mention the language, but Java has a whole library that can be used to read and write to a zip file.

See: http://download.oracle.com/javase/6/docs/api/java/util/zip/package-summary.html

For a C or C++, you'll have to use a 3rd party library.

Starkey
A: 

For C or C++, use zlib with minizip.

rwong