[REBOL] Re: reading files into blocks
From: petr::krenzelok::trz::cz at: 7-Nov-2000 19:14
----- Original Message -----
From: <[Sharriff--Aina--med-iq--de]>
To: <[rebol-list--rebol--com]>
Sent: Tuesday, November 07, 2000 6:44 PM
Subject: [REBOL] reading files into blocks
> Hello!
>
> can someone tell me how to read files as files into blocks?:
>
> [ file.txt file.zip file.gif file.jpg ]
?? if you will read %somedir/
it will give you block of files, or not?
e.g.:
>> block: read %.
== [%public/ %rebl.exe %user.r %rebol.r %rebol.exe %browse-system.r %games/
%new-view031.zip %udalosti.zip %asko/ %obr.jpg %ppm.r %...
>> print read block/3 ; will print content of user.r file ...
> > using:
> fileblock: read/binary %file.zip
>
> stores binary data which I cannot parse.
I don't understand what you want to achieve, sorry. You can't load .zip
archive into block of files, although it would be great to be able to do so
... the same way as rebol loads gifanims into block of gifs ....
-pekr-