From: Kurt Euler Date: 2002-06-12T14:08:45+09:00 Subject: How to read files from a directory foreach? All- Is there a way to use some type of foreach loop to read in each text file in a directory, each pass returning a file name and its contents in two separate strings, until all files have been read? I believe there is a command that reads all file names in a directory into an array. However, I'd rather see if there's a quick and dirty way to step through each file without creating (and then working with) such array. Thanks. -Kurt Euler