def build_array(text):
    """Returns an array of parsed lines from the input text
    Array elements are in the format:
        (min, max, character, string)
    """
    array = []
    with open(text, 'r') as f:
        for line in f:
            _range, char, s = line.strip().split()
            n, m = _range.split('-')
            array.append((int(n), int(m), char[0], s))
    return array