[REBOL] Re: reading files into blocks
From: al:bri:xtra at: 8-Nov-2000 16:02
> can someone tell me how to read files as files into blocks?:
> [ file.txt file.zip file.gif file.jpg ]
> fileblock: read/binary %file.zip
> stores binary data which I cannot parse.
map [ file.txt file.zip file.gif file.jpg ] func [file] [read/binary file]
The result will be a block with four big chunks of binary data.
I hope that helps!
Map is available on my site: http://members.nbci.com/AndrewMartin/Rebol/