[REBOL] Directory/File issue... Re:
From: al::bri::xtra::co::nz at: 30-Sep-2000 8:41
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 stuff/ %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: [Al--Bri--x]...
I hope that helps!
Andrew Martin
Caution - Jedi Knight at work...
ICQ: 26227169
http://members.nbci.com/AndrewMartin/
http://members.xoom.com/AndrewMartin/