[EMAIL PROTECTED] wrote:

> Hello.
>
> I have a unique situation that involves .txt log files
> in a particular directory.
>
> The problem is this.  The log files are created
> outside of my control and have unique name eg;
> 20000102100534.txt
>
> Q. How can I read a text file with Rebol, when I'm not
> sure what the file name actually is?

dir-list: read %.   ;note the period


>
>
> I want to process every file in the directory, but
> how?

foreach f dir-list [if not dir? f [ print f ]]

>
>
> Terry Brownell
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free!
> http://photos.yahoo.com/

--Ryan


     Ryan Cole
 Programmer Analyst
 www.iesco-dms.com
    707-468-5400

"I am enough of an artist to draw freely upon my imagination.
Imagination is more important than knowledge. Knowledge is
limited. Imagination encircles the world." -Einstein


Reply via email to