BZIP2 (.bz2) File Format
BZIP2 file format
Description
Notes
Examples
BZIP2 is a format for data compression which uses the Burrows-Wheeler compression algorithm.
The Import command can encode and decode data in this format, and the ArrayTools[Compress] and ArrayTools[Uncompress] commands also support it.
Content-Type: application/zip
Read the contents of a compressed file.
file≔FileTools:-JoinPath⁡example/newton.bz2,base=datadir
C:\Program Files\Maple 2018\data\example\newton.bz2
data≔Import⁡file
data≔73102327332104971181013211510110111032102117114116104101114443210511632105115329812132115116971101001051101033211111032116104101321151041111171081001011141153211110232103105971101161154610
StringTools:-FromByteArray⁡data
If I have seen further, it is by standing on the shoulders of giants.
See Also
FileTools[Compressed]
Formats
Download Help Document