[REBOL] finding stuff, and looping
finding stuff, and looping Hey guys, I'm pretty sure it's not the best way, but can this be done? open a directory, or mailbox, etc: word: open %/directory/ howmany: length? word howmanymore: howmany ++1 do stuff to word/howmany do stuff to word/howmanymore either howmanymore = howmanymore [close word] [keep going] That's not a very clear question, but, have any ideas? -t
[REBOL] finding stuff, and looping Re:
Hi -t, you wrote: finding stuff, and looping foreach filename load %ddbms/ [ if not dir? filename [ file: read join %ddbms/ [filename] ;- do-stuff-with-contents-of-file filename, ;- or just print the name of the file read: print ["read filename" filename] ] ] ;- Elan [: - )]