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

[REBOL] Re: Seems I don't understand "load"

From: nick1::musiclessonz::com at: 26-Feb-2008 23:34

Hi Steven, When you load that file, all the data gets enclosed a block. Assign a label to that data, when you load it - _not_ within the saved block. i.e., you could save your %file-list as: index.htm index1.htm logo150.gif logo_fromJan.gif WintixManual.pdf Load it: file-list: load %file-list If you loop through the block using "to-file": foreach file file-list [probe to-file file] You get: %index.htm %index1.htm %logo150.gif %logo_fromJan.gif %WintixManual.pdf == %WintixManual.pdf If you wanted to print each file: foreach file file-list [print read to-file file] To append a directory: foreach file file-list [print rejoin [%/mydir/ file]] On Tue, Feb 26, 2008 at 10:38 AM, Steven White <> wrote: