Stefan Rusterholz wrote:
> Whoops, I should have read this paragraph too:
> 
>>> Basically I want to start reading a text file after the "---------" line
>>> that appears in it.
> 
> Then of course I'd do it just as Brett already said: read until you get 
> there not processing the data, then continue to read, this time 
> processing the data.
> 
> Regards
> Stefan


Thanks for guys' advice.  I also came up with another way to get the 
text.

def find_component_list(text)
  /___+/.match(text).post_match.strip.split("\n")
end

Im using a regular expression.

How good is this in terms of efficiency compared to the other methods?

-- 
Posted via http://www.ruby-forum.com/.