method

read_up_to

read_up_to(pattern)
public

Return a list of lines up to the line that matches a pattern. That last line is discarded.