I would try something like:

foreach file read %dir [print read file]

'file is associated with the filenames themselves and would be of type 'file!.  I'd 
imagine that your blocks of code would just print a list of files.

--Andrew Grossman
http://web.dartmouth.edu/~grossman/pgp.html

--- You wrote:

I'm trying to read the contents of every file in a directory and use 
the contents of each file in a foreach statement.
--- end of quote ---

Reply via email to