From: Don Wood Date: 2009-04-21T00:04:46+09:00 Subject: Re: trouble reading a set of files recursively katari@gmail.com wrote: > > Here is the code: > Dir["**/store_need*"].each do |path| > single_file_nm = path.to_s > single_file = File.open("#{single_file_nm}", "r") > single_file.each do |line| > store_need_file << line > puts line > end > single_file.close > end > I just tried your code on a Linux box, and it ran as it should. I don't do Windows, but at least this tells you to focus on OS specific issues. Could it have something to do with drive letters or slashes instead of backslashes? -- Posted via http://www.ruby-forum.com/.