> >
> > REBOL Enhancement request:
> >
> >                 read/zip %MyZipFile.zip ; produces a block of data.
> >                 read/tar %MyTarFile.tar
> >         etc...
> >
> >                 write/zip %MyZipFile.zip [; Block of data]
> >                 write/tar %MyTarFile.tar [; Block of data]
> >         etc...
> >
> >                 write/tar %MyTarFile.tar read/zip %MyZipFile.zip
> >         etc...

Good idea Andrew,

Another approach might be to have all the compression types handled by the
current compress and decompress functions. (This would remain compatible with
the current use of compression/decompression in REBOL.)
               decompress/zip read/binary %MyZipFile.zip
               write/binary %MyZipFile.zip compress/zip {string}

(Decompress could also be made smart enough (by examining the header) to work
out the compression type and then decompress appropriately. Imagine using
decompress %file without having to know in advance what type it is, could be
vey handy.)

Cheers,

Allen K

Reply via email to