Name
CompressFile -- compress a file (V4.0)
Synopsis
size = CompressFile(src$, dst$)
Function
This function compresses file src$ and saves the packed data to dst$. The return value specifies the size of the compressed file. Hollywood uses zlib for data compression.

To decompress files packed by CompressFile() use the Hollywood function DecompressFile().

Inputs
src$
file to compress
dst$
output file
Results
size
size of the compressed file
Example
CompressFile("image.bmp", "image.pak")
The code above compresses file image.bmp to image.pak.

Show TOC