How do I decompress BZ2 files?

Alejandro Tejada capellan2000 at gmail.com
Sat May 22 14:26:02 EDT 2010


Windows users could use code
like this:

put "D:/myFiles/mybzip2file.bz2" into tOpenfile
put "C:/Developer/bzip2.exe -dkc " & tOpenfile into tBzip
set the hideconsolewindows to true
get shell(tBzip)

Now the contents of bzip2 file is
in the variable named it
Then, you could save this content
in another file or display inside
a field (if bz2 file content is text):

put it into fld "displaybz2file"
or
put char 1 to -4 of tOpenfile & "gz" into tnewfile
put compress(it) into URL ("binfile:" & tnewfile)


Alejandro
 
-- 
View this message in context: http://runtime-revolution.278305.n4.nabble.com/How-do-I-decompress-BZ2-files-tp2227291p2227352.html
Sent from the Revolution - User mailing list archive at Nabble.com.



More information about the use-livecode mailing list