def read_txt_between_delimiters(file_name, del1, del2):
    """
    The function reads a block of text between lines marked by a specific text

    :param file_name:     path to the file
    :param del1:          a string denoting a line representing the first delimiter -
                          reading will start from the second line
    :type del1:           str
    :param del2:          a string denoting a line representing the second delimiter
                          reading will stop before this line
    :type del2:           str

    :return:              a block of text placed between two delimiters
    :rtype:               str
    """

    # initialize a block of text
    block = ""

    with open(file_name) as input_data:
        # Skips text before the beginning of the interesting block:
        for line in input_data:
            if line.strip() == del1:  # Or whatever test is needed
                break
        # Reads text until the end of the block:
        for line in input_data:  # This keeps reading the file
            if line.strip() == del2:
                break
            block+=line

    return block