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

[REBOL] Directory/File issue... Re:

From: ryanc:iesco-dms at: 29-Sep-2000 13:51

[tbrownell--yahoo--com] 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! >
--Ryan Ryan Cole Programmer Analyst 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