From: Robert Klemme Date: 2006-08-04T17:10:13+09:00 Subject: Re: Dir.glob finding folders 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