Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Antwort: Re: reading files into blocks

From: sharriff:aina:med-iq at: 8-Nov-2000 7:08

Hi Petr! I would like the ability to compress a file or files that I have selected from the created block for compression and relocation, actually Im trying to code a backup utility . Ive 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? Regards Sharriff Aina information & quality in healthcare AG "Petr Krenzelok" An: <[rebol-list--rebol--com]> <petr.krenzel Kopie: [ok--trz--cz]> Thema: [REBOL] Re: reading files into blocks Gesendet von: rebol-bounce@ 07.11.00 18:14 Bitte antworten an rebol-list ----- 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.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/ %asko/ %obr.jpg %ppm.r %...
>> print read block/3 ; will print content of user.r file ... > > using: > fileblock: read/binary > > 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-