Hi.

Not sure if 1st message posted .. how do I enumerate all
the files within a named folder? Have used Delphi's
FileNext function in the past to do this.

TED

Re: Enumerating files within a folder by BruceJohnson

BruceJohnson
Thu Dec 18 11:01:17 CST 2003

Try the following code.

foreach (string file in System.IO.Directory.GetFiles(Path))
{
Console.WriteLine(file)
}

HTH

Bruce Johnson
http://www.ObjectSharp.com/Bruce

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Re: Enumerating files within a folder by Ricky

Ricky
Thu Dec 18 10:46:21 CST 2003

Have you tried the Directory.GetFiles() method?
The DIrectory class is found in the System.IO namespace.

/ricky

"Ted Reilly" <ted@brake-eng.com> wrote in message
news:01b901c3c585$b4a7bd80$a101280a@phx.gbl...
> Hi.
>
> Not sure if 1st message posted .. how do I enumerate all
> the files within a named folder? Have used Delphi's
> FileNext function in the past to do this.
>
> TED