From: Bob X Date: 2002-07-09T06:24:55+09:00 Subject: Re: Doesn't quite work...looping question Dave Thomas wrote: > Try something like (untested) > > for word in kw > if line.include?(word) > print line # let the lines print to console > outFile.write line # also print to file > end > end Got me where I needed to go...! :-)