From: Andy Dbest Date: 2008-06-09T00:01:14+09:00 Subject: Re: Search File Contents Stefano Crocco wrote: > On Sunday 08 June 2008, Andy Dbest wrote: >> > at the beginning of the method, to see whether the argument you get is >> > the one >> > you expect? >> > >> > Stefano >> >> I tried the puts line, just inside the method and it does return '1.' >> for me. It kind of annoying... > > Can you post a sample of the file you're searching in? This way, I can > try > your code myself and see what's going on. > > Stefano sure... here is an extract of the file 1. aaa.txt - bbb.txt aac.txt - bbc.tct 2. aac.txt - bbb.txt aaa.txt - bbc.txt -- Posted via http://www.ruby-forum.com/.