[REBOL] Antwort: Re: reading files into blocks
From: sharriff:aina:med-iq at: 8-Nov-2000 7:08
I would like the ability to compress a file or files that I have selected
from the created block for compression and relocation, actually I´m trying
to code a backup utility . I´ve tried reading Carls "RIP" archiver code,
but there are some certain parts which are not clear to me. I think trying
to code something of the sort myself would help me in learnng REBOL . I
have thought of making words out of the names of the files in a given
directory and inserting them in a block for manipulation, but I have the
feeling that there must be a cleaner and economical way. Should I convert
them all to the type BINARY! and the insert them into words which are then
inserted into my File block?
med.iq information & quality in healthcare AG
Krenzelok" An: <[rebol-list--rebol--com]>
[ok--trz--cz]> Thema: [REBOL] Re: reading files into blocks
----- Original Message -----
Sent: Tuesday, November 07, 2000 6:44 PM
Subject: [REBOL] reading files into blocks
> 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?
>> 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 ....