OpenPack()

Syntax

Result = OpenPack(Filename$)
Description
Open a pack file previously created with CreatePack(). If 'Result' is 0, the pack file can't be opened. NextPackFile() is used to retrieve and unpack data from the Pack.

Once all the read operations have been done ClosePack() should be called. Note: PureBasic automatically close any opened Packs when the program quits.
  ; Loading the packed files back to memory...
  OpenPack("mycompressedfiles.pak") 
    CatchSprite(0,NextPackFile())   ; InitSprite must be called before in your programm...
    CatchSprite(1,NextPackFile())   ; ...first file will be loaded as Sprite 0, second as Sprite 1
    CatchSound(0,NextPackFile())    ; InitSound must be called before in your programm...
    CatchSound(1,NextPackFile())    ; ...first file will be loaded as Sound 0, second as Sound 1
  ClosePack() 

Supported OS

Windows, Linux, MacOS X

<- NextPackFile() - Packer Index - PackFileSize() ->