From: Jayson Williams Date: 2007-10-14T10:57:14+09:00 Subject: Can you terminate an each_line statement. Hi all, Is there a way to terminate an each_line iteration before it iterates through every line? For instance: file = open(url) file.each_line{|line| found = true if if line.include?('string') break if found == true } Is it possible to to break out of the each_line statement if found is true? Thanks Jayson