Jean Verger wrote: > mmm something like this? > > url1 = Whatever... > MT = 'Search '+'<b>'+d_term.chomp+'</b>' > if (open(url1).find { |line| line.match(MT) } != nil) > foo = File.open("c://abc.txt", "a+") > foo.puts ("Found: " + line) > foo.close() > end Hello Jean, On execution the program gives me the following errors... frame error in wait document OLE error code:8007005 in <unknown> Access is denied HRESULT error code:0x8002009 Exception Occured Me not sure how to get rid of this. It works till opening the requested page but finding and writing part does not seem to work... any more suggestions? Thanks again, Madu -- Posted via http://www.ruby-forum.com/.