< index < 11. Compression toolkit < 11.3 Saving the compressed data to a file | ===================================== 11.4 Loading compressed data from a file ===================================== | > 11.5 Getting data from the buffer

You can read data from a file (compressed or not) into the buffer.

    C++ : int TCODZip::loadFromFile(const char *filename)
    C   : int TCOD_zip_load_from_file(TCOD_zip_t zip, const char *filename)

Parameter | Description
--- | ---
zip | In the C version, the buffer handler, returned by the constructor.
filename | Name of the file

The function returns the number of (uncompressed) bytes read.