Geoff wrote:
> Yep, your right. However I changed that and ran it, but it still comes
> up with an empty text file (even though there are quite a few
> directories that contain "CFI-").

You don't close the file properly.  Rather use the block form of File.open.

	robert