From: Yu Yu Date: 2011-08-20T05:51:51+09:00 Subject: Re: Searching in a directory This search-routine is part of a bigger script and I've problems with this part. I try to keep it simple... I'm looking for one string: dog in all these files: file 1: cat bird frog eagle file2: dog cat eagle frog file3: cat cat eagle bird dog bird file4: ... The search begins in file1. If the string dog is found in file2 the search should stop. Thats all! -- Posted via http://www.ruby-forum.com/.