Home > comp > gb.compress > compress > open 
  [3.0]
 fr de es it nl pl pt pt_BR mk sq ca ar fa vi ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration  
Documentation
History
 
Compress.Open (gb.compress)
Syntax
SUB Open ( Path AS String [ , Level AS Integer ] )

Allows you to open a file for writting in compressed format. Prior to use this method you have to select the appropiate compression driver.

Examples

..
Dim Cz As New Compress

Cz.Type = "bzlib2"
Cz.Open ( "/home/foo/compressed.bz2",Cz.Max )
PRINT #Cz , "Hello, this is a compressed file,"
PRINT #Cz , "using bzlib2 algorithm. Remember that"
PRINT #Cz , "highest compression level provides"
PRINT #Cz , "a little output file, but requires"
PRINT #Cz , "more CPU time"
CLOSE #Cz
...