Terry Brownell wrote:
> Q. How can I read a text file with Rebol, when I'm not sure what the file
name actually is?
>
> I want to process every file in the directory, but how?

>> print mold read %/c/rebol/
[%Component/ %Rebol%20stuff/ %Old_Rebol/ %Association/ %Site/ %Plug-in/
%Include/ %RebMail/ %Patch/ %HTML/]

>> directory: read %/c/rebol/Site/
== [%Site.r %Page/]

>> read join %/c/Rebol/Site/ first directory
== {[
Rebol [
^-Name: 'Site
^-Title: "Site"
^-File: %"Site.r"
^-Date: 29/September/2000
^-Author: "Andrew Martin"
^-eMail: [EMAIL PROTECTED]

I hope that helps!

Andrew Martin
Caution - Jedi Knight at work...
ICQ: 26227169
http://members.nbci.com/AndrewMartin/
http://members.xoom.com/AndrewMartin/
-><-

Reply via email to